Disable secret check for asset pipeline build

This commit is contained in:
Klaus Zanders
2026-05-12 12:07:54 +02:00
parent 2fb60c2baf
commit 34463b2dbf
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -27,6 +27,7 @@ targets:
- NODE_ENV=production - NODE_ENV=production
- NPM_CONFIG_PRODUCTION=false - NPM_CONFIG_PRODUCTION=false
- SECRET_KEY_BASE=1 - SECRET_KEY_BASE=1
- OPENPROJECT_DISABLE__SECRET_KEY_BASE__CHECK=true
dependencies: dependencies:
- epel-release - epel-release
- ImageMagick - ImageMagick
+1 -1
View File
@@ -9,7 +9,7 @@ else
echo "Assets need to be compiled" echo "Assets need to be compiled"
JOBS=8 npm install JOBS=8 npm install
SECRET_KEY_BASE=1 RAILS_ENV=production DATABASE_URL=nulldb://db \ SECRET_KEY_BASE="$(openssl rand -hex 64)" RAILS_ENV=production DATABASE_URL=nulldb://db \
bin/rails openproject:plugins:register_frontend assets:precompile bin/rails openproject:plugins:register_frontend assets:precompile
if [ "$DOCKER" = "1" ]; then if [ "$DOCKER" = "1" ]; then