Skip to content

Commit

Permalink
procfile
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbeletsky committed Sep 29, 2013
1 parent 2c7d2e9 commit 39d2a9f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 14 deletions.
1 change: 1 addition & 0 deletions .npmignore
@@ -0,0 +1 @@
Procfile
1 change: 1 addition & 0 deletions Procfile
@@ -0,0 +1 @@
web: bin/node source/server.js
14 changes: 0 additions & 14 deletions source/server.js
Expand Up @@ -99,20 +99,6 @@ function generateIdFromName(name) {
return name.toLowerCase().replace(/\s/g, '-');
}

// function ensureCollection(app, callback) {
// db.analytics.findOne({application: app}, function (err, doc) {
// if (err) {
// return callback (err);
// }

// if (!doc) {
// return createApplication(app, callback);
// }

// callback(null, doc);
// });
// }

http.createServer(app).listen(app.get('port'), function() {
var env = process.env.NODE_ENV || 'development';
logger.info('analytics app listening on port ' + app.get('port') + ' ' + env + ' mongo: ' + config.connection);
Expand Down

0 comments on commit 39d2a9f

Please sign in to comment.