fix
This commit is contained in:
@@ -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
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
Reference in New Issue
Block a user