File tree Expand file tree Collapse file tree 3 files changed +4
-2
lines changed
Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 3333 with :
3434 hosts : " 118.190.37.169"
3535 privateKey : ${{ secrets.PRIVATE_KEY }}
36- command : cd /root/web/anthhub/deploy/nest-mini-blog/dist && npm i pm2 -g && npm run prod
36+ command : cd /root/web/anthhub/deploy/nest-mini-blog/dist && npm i pm2 -g && pm2 start main.js --name 'awesome-nest' --env production
Original file line number Diff line number Diff line change 77 "scripts" : {
88 "prod" : " cross-env NODE_ENV=production pm2 start dist/main.js --name 'awesome-nest'" ,
99 "stop" : " pm2 delete awesome-nest" ,
10- "build" : " tsc -p tsconfig.build.json" ,
10+ "build" : " tsc -p tsconfig.build.json && cp -R ./node_modules ./dist/node_modules " ,
1111 "format" : " prettier --config .prettierrc --write \" src/**/*.ts\" " ,
1212 "start" : " ts-node -r tsconfig-paths/register src/main.ts" ,
1313 "start:dev" : " concurrently --handle-input \" wait-on dist/main.js && nodemon\" \" tsc -w -p tsconfig.build.json\" " ,
Original file line number Diff line number Diff line change @@ -54,6 +54,8 @@ async function bootstrap() {
5454 app . useGlobalInterceptors ( new TransformInterceptor ( ) )
5555 app . useGlobalPipes ( new ValidationPipe ( ) )
5656
57+ config . port = 7700
58+
5759 await app . listen ( config . port , config . hostName , ( ) => {
5860 Logger . log (
5961 `Awesome-nest API server has been started on http://${ config . hostName } :${ config . port } ` ,
You can’t perform that action at this time.
0 commit comments