add process with no listener

This commit is contained in:
Michael Hobbs committed 2015-04-21 14:33:28 -07:00
1 parent 4ae7af091a
commit 979c1155c2
3 files changed
+9 -2

No files matched your search

+2 -1
View File
@@ -1,2 +1,3 @@
cron: node worker.js
web: node web.js web: node web.js
worker: node web.js worker: node worker.js
+1 -1
View File
@@ -9,4 +9,4 @@ app.get('/', function(request, response) {
var port = process.env.PORT || 5000; var port = process.env.PORT || 5000;
app.listen(port, function() { app.listen(port, function() {
console.log("Listening on " + port); console.log("Listening on " + port);
}); });
+6
View File
@@ -0,0 +1,6 @@
function worker() {
console.log('sleeping for 60 seconds');
setTimeout(worker, 60 * 1000);
}
worker();