Skip to content

Commit

Permalink
feature #794 [docker]Ensure var/sessions is created (Ferror)
Browse files Browse the repository at this point in the history
This PR was merged into the 1.12 branch.

Discussion
----------

We store sessions in the  directory, but we do not create it if it does not exist. Therefore it tends to fail.


https://github.com/Sylius/Sylius-Standard/blob/master/docker-compose.prod.yml#L18

Commits
-------

7ed3183 [docker]Ensure var/sessions is created
  • Loading branch information
lchrusciel authored Jul 21, 2022
2 parents a7306b2 + 7ed3183 commit bfe1a4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker/php/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ if [ "${1#-}" != "$1" ]; then
fi

if [ "$1" = 'php-fpm' ] || [ "$1" = 'bin/console' ]; then
mkdir -p var/cache var/log public/media
mkdir -p var/cache var/log var/sessions public/media
setfacl -R -m u:www-data:rwX -m u:"$(whoami)":rwX var public/media
setfacl -dR -m u:www-data:rwX -m u:"$(whoami)":rwX var public/media

Expand Down

0 comments on commit bfe1a4e

Please sign in to comment.