Fix Decidim config population during clean install
This commit is contained in:
parent
215ffb81ae
commit
5bd1f5e97c
@ -25,8 +25,10 @@ install -o 108080 -g 108080 -m 700 -d ${DECIDIM_CONF}/initializers
|
||||
install -o 108080 -g 108080 -m 700 -d ${DECIDIM_DATA}/migrate
|
||||
install -o 108080 -g 108080 -m 700 -d ${DECIDIM_DATA}/storage
|
||||
install -o 108080 -g 108080 -m 700 -d ${DECIDIM_DATA}/uploads
|
||||
export DECIDIM_SECRET=$(spoc-container exec -u 8080 -g 8080 decidim -- sh -c 'cd /srv/decidim-app; bin/rake secret')
|
||||
install -o 108080 -g 108080 -m 640 decidim_conf/initializers/decidim.rb ${DECIDIM_CONF}/initializers/decidim.rb
|
||||
# application.yml is installed twice because it needs to exist when the container is executed
|
||||
envsubst <decidim_conf/application.yml | install -o 108080 -g 108080 -m 640 /dev/stdin ${DECIDIM_CONF}/application.yml
|
||||
export DECIDIM_SECRET=$(spoc-container exec -u 8080 -g 8080 decidim -- sh -c 'cd /srv/decidim-app; bin/rake secret')
|
||||
envsubst <decidim_conf/application.yml | install -o 108080 -g 108080 -m 640 /dev/stdin ${DECIDIM_CONF}/application.yml
|
||||
|
||||
# Populate database
|
||||
|
Loading…
Reference in New Issue
Block a user