File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ ENV TZ=Asia/Shanghai
88ENV PORT=3000
99ENV NODE_ENV=integration
1010ENV NODE_OPTIONS='--enable-source-maps --stack-trace-limit=50'
11+ ENV PATH="$PATH:/codes/node_modules/.bin"
1112
1213RUN sh scripts/build-in-docker.sh
1314
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ ENV TZ=Asia/Shanghai
88ENV PORT=3000
99ENV NODE_ENV=production
1010ENV NODE_OPTIONS='--enable-source-maps --stack-trace-limit=50'
11+ ENV PATH="$PATH:/codes/node_modules/.bin"
1112
1213RUN sh scripts/build-in-docker.sh
1314
Original file line number Diff line number Diff line change 11services :
22 migration :
33 image : {{projectName}}:integration
4- command : npx prisma migrate deploy
4+ command : prisma migrate deploy
55 api :
66 image : {{projectName}}:integration
77 ports :
88 - 3000:3000
99 cron :
1010 image : {{projectName}}:integration
11- command : npx aomex cron:start
11+ command : aomex cron:start
1212 restart : always
1313 environment :
1414 - NODE_COMPILE_CACHE=/tmp
Original file line number Diff line number Diff line change 11services :
22 migration :
33 image : {{projectName}}:production
4- command : npx prisma migrate deploy
4+ command : prisma migrate deploy
55 api :
66 image : {{projectName}}:production
77 ulimits :
@@ -12,7 +12,7 @@ services:
1212 - 3000:3000
1313 cron :
1414 image : {{projectName}}:production
15- command : npx aomex cron:start
15+ command : aomex cron:start
1616 restart : always
1717 environment :
1818 - NODE_COMPILE_CACHE=/tmp
You can’t perform that action at this time.
0 commit comments