Mercurial > cgi-bin > hgwebdir.cgi > POP > oldRepo
diff 1__Development/6__Website/POPExpressServer/bin/www @ 5:e73fbbcb5fd2
Persisting basic graph works, starting to add persist of view hierarchy too
| author | Sean Halle <seanhalle@yahoo.com> |
|---|---|
| date | Sun, 03 Aug 2014 23:38:15 -0700 |
| parents | |
| children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/1__Development/6__Website/POPExpressServer/bin/www Sun Aug 03 23:38:15 2014 -0700 1.3 @@ -0,0 +1,9 @@ 1.4 +#!/usr/bin/env node 1.5 +var debug = require('debug')('my-application'); 1.6 +var app = require('../app'); 1.7 + 1.8 +app.set('port', process.env.PORT || 3000); 1.9 + 1.10 +var server = app.listen(app.get('port'), function() { 1.11 + debug('Express server listening on port ' + server.address().port); 1.12 +});
