add process with no listener

This commit is contained in:
Michael Hobbs
2015-04-20 20:37:20 -07:00
parent 4ae7af091a
commit 979c1155c2
3 changed files with 9 additions and 2 deletions

View File

@@ -1,2 +1,3 @@
cron: node worker.js
web: node web.js
worker: node web.js
worker: node worker.js

View File

@@ -9,4 +9,4 @@ app.get('/', function(request, response) {
var port = process.env.PORT || 5000;
app.listen(port, function() {
console.log("Listening on " + port);
});
});

View File

@@ -0,0 +1,6 @@
function worker() {
console.log('sleeping for 60 seconds');
setTimeout(worker, 60 * 1000);
}
worker();