only run domains and nginx config if we have a port and ip. fixes #1355

This commit is contained in:
Michael Hobbs
2015-07-30 14:29:36 -07:00
parent b0d55ce589
commit 11e10fceef
7 changed files with 33 additions and 7 deletions

View File

@@ -0,0 +1,2 @@
web=0
worker=1

View File

@@ -0,0 +1 @@
worker: node worker.js

View File

@@ -0,0 +1,2 @@
#!/usr/bin/env bash
set -e; output="$(pgrep -f "node worker.js" | wc -l)"; echo "$output"; test "$output" == "1"

View File

@@ -0,0 +1,8 @@
{
"name": "node-example",
"version": "0.0.1",
"engines": {
"node": "0.10.x",
"npm": "2.7.x"
}
}

View File

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