fix: seed room-planner app+capabilities into auth DB after deploy
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
5332f1449d
commit
988b8390f2
1 changed files with 10 additions and 0 deletions
|
|
@ -1130,6 +1130,16 @@ ${build_out}"
|
|||
&& msg_ok "Room Planner running at 10.10.10.120:3080" \
|
||||
|| msg_warn "Room Planner may need extra time — check LXC 120"
|
||||
|
||||
# Seed app + capabilities into auth DB
|
||||
msg_info "Seeding room-planner into auth DB"
|
||||
pct exec 120 -- docker run --rm \
|
||||
-e DATABASE_URL="postgresql://auth:${AUTH_DB_PASS}@10.10.10.100:5432/auth_db" \
|
||||
-v /opt/room-planner/seed-app.js:/app/seed-app.js \
|
||||
room-planner-backend \
|
||||
node seed-app.js &>/dev/null \
|
||||
&& msg_ok "room-planner seeded into auth DB" \
|
||||
|| msg_warn "Seed failed — run manually: see seed-app.js"
|
||||
|
||||
# Add /room-planner/ location to NPM proxy host
|
||||
npm_add_location "/room-planner/" "10.10.10.120" 3080
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue