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/?a=commitdiff_plain;h=e16480a383e38dc72ab747ef8bf8b6f02de63f44;hp=ea22572f6683c0b369c18d1abb9343a70eb9d66d;p=perso%2FImmae%2FProjets%2FNodejs%2FSurfer.git 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