File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 3
3
4
4
env >> /etc/environment
5
5
6
- # Need to fix permissions for be able to create cache dir
7
- /bin/chown -R www-data:www-data /var/www/html/var || true ;
8
- /bin/mkdir -p /var/www/html/var/cache || true ;
9
- # Need to fix permissions for be able to write in cache dir
10
6
/bin/chown -R www-data:www-data /var/www/html/var || true ;
7
+ /bin/chown -R www-data:www-data /var/www/html/config || true ;
8
+
9
+ # Print local env vars to .env.xxx.php file for performances and crontab jobs
10
+ /usr/bin/sudo -u www-data -- bash -c " /usr/local/bin/composer dump-env prod"
11
+ # To improve performance (i.e. avoid decrypting secrets at runtime),
12
+ # you can decrypt your secrets during deployment to the "local" vault:
13
+ /usr/bin/sudo -u www-data -- bash -c " APP_RUNTIME_ENV=prod /var/www/html/bin/console secrets:decrypt-to-local --force"
11
14
12
15
# Let cron take the wheel
13
16
echo " Starting cron in foreground."
You can’t perform that action at this time.
0 commit comments