Browse Source

Remove frontend deployment configuration from ecosystem.config.js and update deployment script to exclude frontend access URL.

deploy
dash 2 weeks ago
parent
commit
c32953cc05
  1. 1
      deploy.sh
  2. 34
      ecosystem.config.js

1
deploy.sh

@ -127,7 +127,6 @@ echo ""
echo -e "${GREEN}🎉 部署成功!${NC}" echo -e "${GREEN}🎉 部署成功!${NC}"
echo "" echo ""
echo "访问地址:" echo "访问地址:"
echo " - 前端: http://localhost:5500"
echo " - 后端: http://localhost:3000" echo " - 后端: http://localhost:3000"
echo "" echo ""
echo "常用命令:" echo "常用命令:"

34
ecosystem.config.js

@ -30,23 +30,23 @@ module.exports = {
listen_timeout: 3000, listen_timeout: 3000,
kill_timeout: 5000 kill_timeout: 5000
}, },
{ // {
name: 'just-demo-frontend', // name: 'just-demo-frontend',
script: 'npx', // script: 'npx',
cwd: path.resolve(__dirname), // cwd: path.resolve(__dirname),
args: 'serve frontend/dist -p 5500 -s', // args: 'serve frontend/dist -p 5500 -s',
instances: 1, // instances: 1,
autorestart: true, // autorestart: true,
watch: false, // watch: false,
max_memory_restart: '200M', // max_memory_restart: '200M',
env: { // env: {
NODE_ENV: 'production' // NODE_ENV: 'production'
}, // },
error_file: path.resolve(__dirname, 'logs/frontend-error.log'), // error_file: path.resolve(__dirname, 'logs/frontend-error.log'),
out_file: path.resolve(__dirname, 'logs/frontend-out.log'), // out_file: path.resolve(__dirname, 'logs/frontend-out.log'),
log_date_format: 'YYYY-MM-DD HH:mm:ss Z', // log_date_format: 'YYYY-MM-DD HH:mm:ss Z',
merge_logs: true // merge_logs: true
} // }
] ]
}; };

Loading…
Cancel
Save