Add polling deployment scripts

This commit is contained in:
shkim
2026-05-10 20:10:46 +09:00
parent 94ff09dc98
commit 1fe15ea3ea
4 changed files with 66 additions and 0 deletions
+11
View File
@@ -15,11 +15,22 @@ sudo ./run.sh
sudo ./stop.sh
```
## Continuous Deployment
`cd-watch.sh` checks `origin/main` and runs `deploy.sh` when the remote revision changes.
```sh
sudo ./cd-watch.sh
```
The server cron runs this once per minute.
## Paths
- App: `/volume2/homes/whitekomani/photo-request-service`
- Config: `.env`
- DB: `data/db.json`
- Deploy log: `data/deploy.log`
- Uploads: `/volume2/AKA Drive/사진 받기`
Each request creates its own folder under the upload directory.