Deploy to Heroku (#117)

* Specify Node.js version

* Deploy to Heroku
This commit is contained in:
cdpath
2018-05-14 15:47:14 +08:00
committed by DIYgod
parent c70873d9c8
commit 7efe082554
6 changed files with 52 additions and 5 deletions
+2 -2
View File
@@ -2,7 +2,7 @@ FROM keymetrics/pm2:8-alpine
ENV NODE_ENV production
WORKDIR /usr/src/app
COPY ["package.json", "./"]
RUN yarn --prod -s && mv node_modules ../
RUN yarn --ignore-engines --prod -s && mv node_modules ../
COPY . .
EXPOSE 1200
CMD pm2-runtime start process.json
CMD pm2-runtime start process.json