diff --git a/docker/production/post_deploy.sh b/docker/production/post_deploy.sh new file mode 100644 index 0000000..f6fb9f6 --- /dev/null +++ b/docker/production/post_deploy.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +# update application cache +php artisan optimize +php artisan optimize:clear + +# start the application +php-fpm -D && nginx -g "daemon off;" + +chmod -R 775 /var/www/server/storage && \ +chmod -R 775 /var/www/server/bootstrap/cache && \ +chown www-data:www-data /var/www/server/bootstrap/cache && \ +chown www-data:www-data /var/www/server/storage/*