pm2 / start.sh
jimlv's picture
Update start.sh
224f022 verified
Raw History Blame Contribute Delete
184 Bytes
#!/bin/sh
set -e
cd /app
# 测试 Nginx 配置是否正确
nginx -t
# 启动 Nginx(后台运行)
nginx
# 启动 PM2(前台运行)
exec pm2-runtime start ecosystem.config.js