Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
PUBLIC
/
surfer-okd
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit b72caa69
authored
Jun 27, 2015
by
Johannes Zellner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use forever in the container
1 parent
591ad40c
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
1 deletions
Dockerfile
package.json
start.sh
Dockerfile
View file @
b72caa6
...
@@ -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"
]
package.json
View file @
b72caa6
...
@@ -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"
...
...
start.sh
0 → 100755
View file @
b72caa6
#!/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
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment