Skip to content

Commit

Permalink
pm2
Browse files Browse the repository at this point in the history
  • Loading branch information
quick-xp committed Apr 20, 2019
1 parent e0e827d commit a7a4397
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,7 @@ ENV APP_ROUTE /app
RUN mkdir -p $APP_ROUTE
WORKDIR $APP_ROUTE

RUN yarn install
RUN npm install pm2 -g
RUN npm install

CMD ["pm2-runtime", "process.yml"]
8 changes: 8 additions & 0 deletions process.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
apps:
- script :'dist/bin/server.js'
name: 'eonext_frontend'
instances: -1
exec_mode: 'cluster'
env:
NODE_ENV: production

0 comments on commit a7a4397

Please sign in to comment.