From: Johannes Zellner Date: Tue, 8 Sep 2015 13:17:22 +0000 (+0200) Subject: Do not use forever X-Git-Url: https://git.immae.eu/?p=perso%2FImmae%2FProjets%2FNodejs%2FSurfer.git;a=commitdiff_plain;h=e16480a383e38dc72ab747ef8bf8b6f02de63f44 Do not use forever --- diff --git a/Dockerfile b/Dockerfile index c82a944..e1f588c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,8 +13,6 @@ ADD app /app/code/app ADD start.sh /app/code/start.sh RUN npm install -RUN npm install -g forever - EXPOSE 3000 CMD [ "/app/code/start.sh" ] diff --git a/start.sh b/start.sh index 1805585..9967ed8 100755 --- a/start.sh +++ b/start.sh @@ -4,5 +4,5 @@ set -eu export NODE_ENV=production -forever start --workingDir /app/code app.js /app/data -forever logs -f 0 \ No newline at end of file +cd /app/code +app.js /app/data