Unverified Commit 0786381f authored by Philippe M. Chiasson's avatar Philippe M. Chiasson
Browse files

Use forever to run the node app, ensuring restarts on crashes

Fixes #288
parent de681870
......@@ -9,6 +9,11 @@ package { 'gulp':
provider => 'npm',
}
package { 'forever':
ensure => '0.15.3',
provider => 'npm',
}
# Needed for binary compilation (i.e. bcrypt)s
package { 'node-gyp':
ensure => '3.6.2',
......@@ -76,6 +81,6 @@ upstart::job { $project_name:
. /etc/profile.d/proxy.sh
fi
exec /usr/bin/gulp listen
exec /usr/bin/forever --minUptime 1000 --spinSleepTime 1000 /usr/bin/gulp run
',
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment