Document development-first workflow with weekly prod releases.
Default all day-to-day work to gallery_dev and devgallery; add Cursor rule and update docs, env examples, and deploy guide for scheduled prod promotion.
This commit is contained in:
+10
-5
@@ -2,6 +2,8 @@
|
||||
|
||||
Quick cheat sheet for daily operations. All `npm` commands run from the **repository root** unless noted.
|
||||
|
||||
**Default target: dev.** Day-to-day commands use `gallery_dev`, repo `data/images/`, and https://devgallery.mysuperlab.netcraze.pro. Prod (`gallery_prod`, Docker, `docker:publish`) is for **scheduled releases** (~weekly) — see [Promote dev → prod](#promote-dev--prod-scheduled-release) below.
|
||||
|
||||
**Environments:**
|
||||
|
||||
| | Dev | Prod |
|
||||
@@ -283,14 +285,17 @@ Expect JSON with `min_year` / `max_year`. HTML shell only from `curl` on `/` is
|
||||
|
||||
---
|
||||
|
||||
## Promote dev → prod (checklist)
|
||||
## Promote dev → prod (scheduled release)
|
||||
|
||||
1. `npm run db:backup`
|
||||
2. Test on https://devgallery.mysuperlab.netcraze.pro
|
||||
3. `npm run db:restore:prod -- --file db/DataBackup/gallery_dev_data_....txt`
|
||||
4. `npm run images:sync-to-prod`
|
||||
~Weekly (or when explicitly releasing to prod). Not part of daily dev.
|
||||
|
||||
1. Test on https://devgallery.mysuperlab.netcraze.pro
|
||||
2. `npm run db:backup`
|
||||
3. `npm run db:restore:prod -- --file db/DataBackup/gallery_dev_data_....txt` (if DB/catalog changed)
|
||||
4. `npm run images:sync-to-prod` (if images changed)
|
||||
5. `npm run docker:publish` (if code changed)
|
||||
6. Restart **gallery-web** on TrueNAS
|
||||
7. Verify https://gallery.mysuperlab.netcraze.pro
|
||||
|
||||
---
|
||||
|
||||
|
||||
Reference in New Issue
Block a user