Skip to content

Instantly share code, notes, and snippets.

@jcolemorrison
Created April 14, 2014 13:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jcolemorrison/10649282 to your computer and use it in GitHub Desktop.
Save jcolemorrison/10649282 to your computer and use it in GitHub Desktop.
Building an Angular and Express App Part 1: /bin/www - J Cole Morrison
#!/usr/bin/env node
var debug = require('debug')('my-application');
var app = require('../app');
app.set('port', process.env.PORT || 3000);
var server = app.listen(app.get('port'), function() {
debug('Express server listening on port ' + server.address().port);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment