Download start.sh from nestjs/pm2: direct link, hf CLI and curl.
- Browser
- Download file 184 Bytes
-
https://huggingface.co/spaces/nestjs/pm2/resolve/main/start.sh
- Command line
-
hf download hf://spaces/nestjs/pm2/start.sh
-
curl -L -o start.sh https://huggingface.co/spaces/nestjs/pm2/resolve/main/start.sh
184 Bytes
| set -e | |
| cd /app | |
| # 测试 Nginx 配置是否正确 | |
| nginx -t | |
| # 启动 Nginx(后台运行) | |
| nginx | |
| # 启动 PM2(前台运行) | |
| exec pm2-runtime start ecosystem.config.js |