Skip to content

Instantly share code, notes, and snippets.

@azampagl
Created November 17, 2012 01:23
Show Gist options
  • Save azampagl/4092439 to your computer and use it in GitHub Desktop.
Save azampagl/4092439 to your computer and use it in GitHub Desktop.
server.js and initial package.json
{
"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"
}
/**
* 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