docs: correct deployment path to /var/www/ims
IMS for ims.setia.com.my is deployed to /var/www/ims, not /opt/wsims/app. PM2 wsims process runs from this location. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -20,16 +20,16 @@ See `[[phases]]` memory for full phase breakdown and deliverables.
|
||||
|
||||
## Deployment (Production)
|
||||
|
||||
**CRITICAL — Deploy path is `/opt/wsims/app` on 175.136.239.121:9321, NOT `/var/www/ims`.**
|
||||
**Deploy path for ims.setia.com.my is `/var/www/ims` on 175.136.239.121:9321.**
|
||||
|
||||
```bash
|
||||
# Correct deployment:
|
||||
tar -czf - package.json package-lock.json .next | \
|
||||
ssh -p 9321 setia@175.136.239.121 "cd /opt/wsims/app && tar -xzf -"
|
||||
ssh -p 9321 setia@175.136.239.121 "cd /var/www/ims && tar -xzf -"
|
||||
pm2 restart wsims
|
||||
```
|
||||
|
||||
PM2 process `wsims` runs from `/opt/wsims/app`. Nginx proxies `ims.setia.com.my` → `http://127.0.0.1:3003`.
|
||||
PM2 process `wsims` runs from `/var/www/ims`. Nginx proxies `ims.setia.com.my` → `http://127.0.0.1:3003`.
|
||||
|
||||
## Dev Conventions
|
||||
- Never commit `.env` or API keys. All secrets in env vars only.
|
||||
|
||||
Reference in New Issue
Block a user