Rename npm scripts to environment-prefixed names (dev:/prod:/devtoprod:/prodto:dev:/infra:).
Align package.json scripts and their references across scripts/, infra/, and db/ SQL with the dev-first workflow naming scheme. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
co-authored by
Cursor
parent
a2263ca186
commit
96285737f5
@@ -36,10 +36,10 @@ If deploy fails with **`manifest unknown`**, the image is not in Gitea yet — c
|
||||
```powershell
|
||||
cd C:\Users\SNAP\Nextcloud\Personal\Repo\Gallery
|
||||
docker login gitea.mysuperlab.netcraze.pro
|
||||
npm run docker:publish
|
||||
npm run prod:docker:publish
|
||||
```
|
||||
|
||||
Push only (already built): `npm run docker:publish:push-only`
|
||||
Push only (already built): `npm run prod:docker:push-only`
|
||||
|
||||
Image: `gitea.mysuperlab.netcraze.pro/danilka/gallery-web:latest`
|
||||
|
||||
@@ -84,7 +84,7 @@ Enable SMB share **`Gallery`** → `/mnt/BasePool/Applications/Gallery` (for ima
|
||||
```powershell
|
||||
net use \\192.168.10.122\Gallery /user:YOUR_TRUENAS_USER
|
||||
cd C:\Users\SNAP\Nextcloud\Personal\Repo\Gallery
|
||||
npm run images:sync-to-prod
|
||||
npm run devtoprod:images
|
||||
```
|
||||
|
||||
UNC destination: `\\192.168.10.122\Gallery\data\images`
|
||||
@@ -132,7 +132,7 @@ On TrueNAS shell: `bash infra/docker/truenas-verify.sh`
|
||||
After code changes on dev PC:
|
||||
|
||||
```powershell
|
||||
npm run docker:publish
|
||||
npm run prod:docker:publish
|
||||
```
|
||||
|
||||
Restart **gallery-web** on TrueNAS (or rely on `pull_policy: always`).
|
||||
@@ -141,11 +141,11 @@ Restart **gallery-web** on TrueNAS (or rely on `pull_policy: always`).
|
||||
|
||||
| Issue | Fix |
|
||||
|-------|-----|
|
||||
| **`manifest unknown`** | Run `npm run docker:publish` first; or offline `truenas-load-image.sh` |
|
||||
| **`manifest unknown`** | Run `npm run prod:docker:publish` first; or offline `truenas-load-image.sh` |
|
||||
| **502 / 504 public URL** | Keenetic → `192.168.10.122:5173`, protocol **`http`**; verify LAN curl above |
|
||||
| Container cannot reach Postgres | `DB_HOST=192.168.10.122`; `extra_hosts` in compose |
|
||||
| Empty timeline | `DB_NAME=gallery_prod`; run pgAdmin split if still on legacy `Gallery` |
|
||||
| Missing images | `npm run images:sync-to-prod`; check volume mount and `chown 1001:1001` |
|
||||
| Missing images | `npm run devtoprod:images`; check volume mount and `chown 1001:1001` |
|
||||
| Pull 401 | Gitea registry credentials on TrueNAS; `read:package` token |
|
||||
| Push fails on dev PC | Gitea `ROOT_URL` HTTPS fix; use Admin PowerShell for LAN push |
|
||||
|
||||
Reference in New Issue
Block a user