Created
November 17, 2012 01:23
-
-
Save azampagl/4092439 to your computer and use it in GitHub Desktop.
server.js and initial package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"analyze": false, | |
"author": "Aaron Zampaglione <azampagl@azampagl.com>", | |
"config": { | |
"base_url": "", | |
"cfd": "s", | |
"cookieSecret": "jnoefwjhjofewy89r3y8vdsnkjds", | |
"logDir": "./logs", | |
"uploads": "up" | |
}, | |
"dependencies": { | |
"async": "*", | |
"coffee-script": "*", | |
"express": "3.x", | |
"jade": "*", | |
"requirejs": "*", | |
"underscore": "*", | |
"winston": "*" | |
}, | |
"engines": { | |
"node": "v0.8.x" | |
}, | |
"name": "bellamelpressurewashing.com", | |
"private": false, | |
"scripts": { | |
"start": "node server.js" | |
}, | |
"subdomain": "bellamelpressurewashing", | |
"version": "1.0.0" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Main entry point to execute the application. | |
* | |
* @copyright (c) 2012-Present Aaron Zampaglione <azampagl@azampagl.com> | |
*/ | |
path = require('path'); | |
requirejs = require('requirejs'); | |
// Setup requirejs. | |
requirejs.config({ | |
baseUrl: path.resolve(__dirname + '/app'), | |
nodeRequire: require | |
}); | |
// Require our app, initialize, and run. | |
requirejs(['app'], function(App) { | |
App(function(app) { | |
var port = process.env.PORT || process.env.VMC_APP_PORT || 8080; | |
app.listen(port); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment