mirror of
https://github.com/opf/openproject.git
synced 2026-06-14 03:30:14 +00:00
Disable secret check for asset pipeline build
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user