Commit b72caa69 by Johannes Zellner

Use forever in the container

1 parent 591ad40c
Showing with 15 additions and 1 deletions
...@@ -10,8 +10,11 @@ ADD package.json /app/code/package.json ...@@ -10,8 +10,11 @@ ADD package.json /app/code/package.json
ADD src /app/code/src ADD src /app/code/src
ADD app.js /app/code/app.js ADD app.js /app/code/app.js
ADD app /app/code/app ADD app /app/code/app
ADD start.sh /app/code/start.sh
RUN npm install RUN npm install
RUN npm install -g forever
EXPOSE 3000 EXPOSE 3000
CMD [ "nodejs", "app.js"] CMD [ "/app/code/start.sh" ]
...@@ -33,6 +33,8 @@ ...@@ -33,6 +33,8 @@
"morgan": "^1.6.0", "morgan": "^1.6.0",
"multiparty": "^4.1.2", "multiparty": "^4.1.2",
"passport": "^0.2.2", "passport": "^0.2.2",
"passport-ldapjs": "^1.0.2",
"readline-sync": "^1.2.19",
"safetydance": "0.0.16", "safetydance": "0.0.16",
"superagent": "^1.2.0", "superagent": "^1.2.0",
"underscore": "^1.8.3" "underscore": "^1.8.3"
......
#!/bin/bash
set -eu
export NODE_ENV=production
forever start --workingDir /app/code app.js
forever logs -f 0
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!