Skip to content

Commit

Permalink
www-dataで実行
Browse files Browse the repository at this point in the history
  • Loading branch information
kiy0taka committed May 27, 2022
1 parent fb627e5 commit abd8438
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dockerbuild/docker-php-entrypoint
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ if [ ! -d /var/www/html/vendor/bin ]; then
--no-plugins \
-d ${APACHE_DOCUMENT_ROOT}
composer dumpautoload -o --apcu
chown -R www-data: vendor
fi

bin/console doctrine:query:sql 'select * from dtb_base_info' > /dev/null 2>&1 || (
if [ -z ${DATABASE_URL} ]; then
cp .env.dist .env
su www-data -s /bin/sh -c 'cp .env.dist .env'
fi
composer run-script installer-scripts
composer run-script auto-scripts
su www-data -s /bin/sh -c 'composer run-script installer-scripts && composer run-script auto-scripts'
)

echo "PassEnv APP_ENV APP_DEBUG TRUSTED_PROXIES TRUSTED_HOSTS" > /etc/apache2/conf-enabled/eccube_env.conf
Expand Down

0 comments on commit abd8438

Please sign in to comment.