Commit 12861bd3 by xiaolanchong

test

parent c50a116d
......@@ -3,4 +3,3 @@
.vscode
node_modules
nuxt-dist
package-lock.json
\ No newline at end of file
FROM node:12.13.1-slim
FROM registry.cn-hangzhou.aliyuncs.com/cduan/node-full
ADD ./ /var/www/web_live
EXPOSE 3000
......@@ -7,6 +7,8 @@ ENV TZ Asia/Shanghai
WORKDIR "/var/www/web_live"
RUN npm install pm2 -g && npm install && npm run build
RUN chmod +x start.sh && \
yarn install && \
yarn run build
ENTRYPOINT ["./start.sh"]
This source diff could not be displayed because it is too large. You can view the blob instead.
{
"apps": [{
"name": "live",
"script": "npm run start",
"script": "yarn run start",
"instances": 1,
"autorestart": true,
"error_file": "./logs/app-err.log",
......@@ -9,7 +9,7 @@
},
{
"name": "live-pre",
"script": "npm run start-pre",
"script": "yarn run start-pre",
"instances": 1,
"autorestart": true,
"error_file": "./logs/app-err.log",
......@@ -17,7 +17,7 @@
},
{
"name": "live-test",
"script": "npm run start-test",
"script": "yarn run start-test",
"instances": 1,
"autorestart": true,
"error_file": "./logs/app-err.log",
......
#!/bin/sh
npm run pm2
yarn run pm2
while true
do
......
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment