Skip to content

Commit d9be813

Browse files
committed
2.9.4
2.9.4 - 2017-10-18 ----------------------------------------------- ## Docker * Adds [PM2](http://pm2.keymetrics.io/) to `Dockerfile`, for Docker-compatible process management, clustering and auto-restart policing. * Replaces start command with auto-clustering via PM2
1 parent 9fd9b26 commit d9be813

File tree

4 files changed

+16
-6
lines changed

4 files changed

+16
-6
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
2.9.4 - 2017-10-18
2+
-----------------------------------------------
3+
4+
## Docker
5+
* Adds [PM2](http://pm2.keymetrics.io/) to `Dockerfile`, for Docker-compatible process management, clustering and auto-restart policing.
6+
* Replaces start command with auto-clustering via PM2
7+
18
2.9.3 - 2017-10-18
29
-----------------------------------------------
310

Dockerfile

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,15 @@ FROM node:8-alpine
22

33
WORKDIR /src
44

5-
# Add NPM package config
6-
ADD package*.json ./
7-
85
# The official image has verbose logging; change it to npm's default
96
ENV NPM_CONFIG_LOGLEVEL notice
107

8+
# Add PM2, for Node process management
9+
RUN npm i -g pm2
10+
11+
# Add NPM package config
12+
ADD package*.json ./
13+
1114
# Install everything (and clean up afterwards)
1215
RUN apk add --no-cache --virtual .gyp \
1316
autoconf \
@@ -33,4 +36,4 @@ ENV PORT 4000
3336
RUN npm run build
3437

3538
# Start the server by default
36-
CMD npm run server
39+
CMD pm2-docker start dist/server.js -i max

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "reactql-app",
3-
"version": "2.9.3",
3+
"version": "2.9.4",
44
"description": "ReactQL starter kit app",
55
"license": "UNLICENSED",
66
"private": true,

0 commit comments

Comments
 (0)