initial commit

This commit is contained in:
Riku Rouvila
2015-01-14 18:14:37 +02:00
commit d9421f9996
13 changed files with 203 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
description "koodiklinikka.fi API"
author "Riku Rouvila <riku.rouvila@gmail.com>"
start on runlevel [2345]
stop on runlevel [016]
respawn
respawn limit 10 5
env NODE_ENV=production
exec su -s /bin/bash -c 'source {{ nvm_script }} && nvm use {{ project_name }} && cd {{ projects_path }} && exec "$0" "$@"' {{ service_user }} -- \
node index.js \
>> /var/log/{{ project_name }}.log 2>&1