PatchMon: restore env files before DB operations
This commit is contained in:
parent
63a76ca4bb
commit
6896fcb664
@ -56,9 +56,9 @@ function update_script() {
|
||||
$STD npm install --include=dev --no-audit --no-fund --no-save --ignore-scripts
|
||||
$STD npm run build
|
||||
cd /opt/patchmon/backend
|
||||
$STD npx prisma migrate deploy
|
||||
mv /opt/backend.env /opt/patchmon/backend/.env
|
||||
mv /opt/frontend.env /opt/patchmon/frontend/.env
|
||||
$STD npx prisma migrate deploy
|
||||
msg_ok "Updated ${APP}"
|
||||
|
||||
msg_info "Starting $APP"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user