DEPLOY.md: update paths from /srv to /opt
The actual deploy on optical-dev.oliver.solutions lives at /opt/dow-prod-tracker — standard location for third-party apps on Debian/Ubuntu. The docs said /srv (my arbitrary choice). Both work; docs should match reality. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
be46089569
commit
870128c16e
1 changed files with 6 additions and 6 deletions
12
DEPLOY.md
12
DEPLOY.md
|
|
@ -6,7 +6,7 @@ shared Oliver Agency dev box alongside `hp-prod-tracker`.
|
|||
Run the deploy script from the repo root on the server:
|
||||
|
||||
```bash
|
||||
cd /srv/dow-prod-tracker # or wherever you cloned it
|
||||
cd /opt/dow-prod-tracker # or wherever you cloned it
|
||||
./deploy.sh
|
||||
```
|
||||
|
||||
|
|
@ -106,9 +106,9 @@ DOW_ADMIN_PASSWORD= # leave blank → seed prints a r
|
|||
## First-time setup on a fresh server
|
||||
|
||||
```bash
|
||||
# 1. Clone
|
||||
sudo mkdir -p /srv && sudo chown $USER:$USER /srv
|
||||
cd /srv
|
||||
# 1. Clone — /opt is standard for third-party apps on Debian/Ubuntu
|
||||
sudo mkdir -p /opt && sudo chown $USER:$USER /opt
|
||||
cd /opt
|
||||
git clone git@bitbucket.org:zlalani/dow-prod-tracker.git
|
||||
cd dow-prod-tracker
|
||||
|
||||
|
|
@ -129,7 +129,7 @@ docker compose -p dow-prod-tracker exec app npm run db:seed
|
|||
## Updating an existing deployment
|
||||
|
||||
```bash
|
||||
cd /srv/dow-prod-tracker
|
||||
cd /opt/dow-prod-tracker
|
||||
./deploy.sh # pulls, rebuilds, restarts
|
||||
```
|
||||
|
||||
|
|
@ -185,7 +185,7 @@ automatically.
|
|||
If a deploy goes wrong:
|
||||
|
||||
```bash
|
||||
cd /srv/dow-prod-tracker
|
||||
cd /opt/dow-prod-tracker
|
||||
git log --oneline -5 # find previous good commit
|
||||
git checkout <previous-commit>
|
||||
./deploy.sh --skip-pull # rebuild from that commit
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue