Reorder Decidim rake secret generation

This commit is contained in:
Disassembler 2019-12-17 21:31:05 +01:00
parent 7426ff6f9c
commit c73c5f1eef
No known key found for this signature in database
GPG Key ID: 524BD33A0EE29499

View File

@ -20,9 +20,9 @@ envsubst <createdb.sql | lxc-attach -u 5432 -g 5432 decidim-postgres -- psql
lxchelper extract decidim /srv/decidim-app/config /srv/decidim/decidim_conf
# Configure Decidim
export DECIDIM_SECRET=$(lxc-execute decidim -- rake secret)
mkdir -p /srv/decidim/decidim_data/storage /srv/decidim/decidim_data/uploads
chown 108080:108080 /srv/decidim/decidim_data/storage /srv/decidim/decidim_data/uploads
export DECIDIM_SECRET=$(lxc-execute decidim -- rake secret)
cp decidim_conf/environments/production.rb /srv/decidim/decidim_conf/environments/production.rb
cp decidim_conf/initializers/decidim.rb /srv/decidim/decidim_conf/initializers/decidim.rb
envsubst <decidim_conf/application.yml >/srv/decidim/decidim_conf/application.yml