fix(docuseal): use real SECRET_KEY_BASE for db:migrate on update

SECRET_KEY_BASE_DUMMY forced Rails to write tmp/local_secret.txt, which failed with EACCES during update and aborted db:migrate. Drop the dummy flag so the real SECRET_KEY_BASE from .env is used, and ensure tmp exists.
This commit is contained in:
MickLesk
2026-06-26 21:10:07 +02:00
parent dc26b8358e
commit c35a7427a5
+1 -1
View File
@@ -55,7 +55,7 @@ function update_script() {
eval "$(rbenv init - bash)" 2>/dev/null || true
export RAILS_ENV=production
export NODE_ENV=production
export SECRET_KEY_BASE_DUMMY=1
mkdir -p /opt/docuseal/tmp
set -a
source /opt/docuseal/.env
set +a