This commit is contained in:
2026-04-06 00:33:27 +07:00
parent 0f7e386e2a
commit 9f4370365a
4 changed files with 32 additions and 27 deletions

View File

@@ -287,7 +287,7 @@ bun install
```bash
# Start server với PM2
pm2 start ecosystem.config.js --env production
pm2 start ecosystem.config.cjs --env production
# Hoặc start trực tiếp
pm2 start server.js --name "charging-station-mock" --interpreter bun
@@ -368,7 +368,7 @@ sudo certbot renew --dry-run
| Command | Mô tả |
|---------|-------|
| `pm2 start ecosystem.config.js` | Start với config file |
| `pm2 start ecosystem.config.cjs` | Start với config file |
| `pm2 start server.js --name app` | Start với tên custom |
| `pm2 list` | Xem danh sách processes |
| `pm2 logs [name]` | Xem logs |
@@ -386,9 +386,9 @@ sudo certbot renew --dry-run
# Cách 1: Environment variable
PORT=3200 pm2 start server.js --name "charging-station-mock" --interpreter bun
# Cách 2: Sửa ecosystem.config.js
# Cách 2: Sửa ecosystem.config.cjs
# env_production: { PORT: 3200 }
pm2 start ecosystem.config.js --env production
pm2 start ecosystem.config.cjs --env production
```
---