From 0c2218762c5390af10d6f65e5497d9bec97759a9 Mon Sep 17 00:00:00 2001 From: James Cole Date: Thu, 20 Dec 2018 22:13:16 +0100 Subject: [PATCH] Update entry point script. --- .deploy/docker/entrypoint.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.deploy/docker/entrypoint.sh b/.deploy/docker/entrypoint.sh index 8285de0fdd..1d9f989056 100755 --- a/.deploy/docker/entrypoint.sh +++ b/.deploy/docker/entrypoint.sh @@ -20,11 +20,22 @@ mkdir -p $FIREFLY_PATH/storage/upload chown -R www-data:www-data -R $FIREFLY_PATH/storage chmod -R 775 $FIREFLY_PATH/storage +chown -R www-data:www-data -R $FIREFLY_PATH/app +chmod -R 775 $FIREFLY_PATH/app + # remove any lingering files that may break upgrades: rm -f $FIREFLY_PATH/storage/logs/laravel.log cat .env.docker | envsubst > .env composer dump-autoload php artisan package:discover + +php artisan migrate --seed +php artisan firefly:upgrade-database +php artisan firefly:verify +php artisan passport:install +php artisan cache:clear + + php artisan firefly:instructions install exec /usr/bin/supervisord -c /etc/supervisor/supervisord.conf --nodaemon \ No newline at end of file