]> git.immae.eu Git - perso/Immae/Projets/Nodejs/Surfer.git/commitdiff
Do not use forever
authorJohannes Zellner <johannes@nebulon.de>
Tue, 8 Sep 2015 13:17:22 +0000 (15:17 +0200)
committerJohannes Zellner <johannes@nebulon.de>
Tue, 8 Sep 2015 13:17:22 +0000 (15:17 +0200)
Dockerfile
start.sh

index c82a944837de170984e85a16d94c8df0b7b043b5..e1f588c21f69e658af344ddc1046df15f0410ea8 100644 (file)
@@ -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" ]
index 18055858bc1679ddb5c4040ea5325cff76a65ad2..9967ed8980c211d12e2e5fccc3d7e79c47bc339e 100755 (executable)
--- 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