diff --git a/docker/entrypoint.sh b/docker/entrypoint.sh index 96593b8..0036cb1 100755 --- a/docker/entrypoint.sh +++ b/docker/entrypoint.sh @@ -27,6 +27,12 @@ if ( ! grep -q "^APP_KEY=" ".env" || grep -q "^APP_KEY=$" ".env"); then /usr/local/bin/php artisan key:generate --force fi +if [ ! -L "public/storage" ]; then + echo " > Creating symbolic link for app public storage..." + + /usr/local/bin/php artisan storage:link +fi + echo "====================== Installing NPM dependencies and building frontend... ====================== " /usr/bin/npm install /usr/bin/npm run build diff --git a/docker/nginx.conf b/docker/nginx.conf index d3f8445..9e2fdca 100644 --- a/docker/nginx.conf +++ b/docker/nginx.conf @@ -8,7 +8,6 @@ server { location / { try_files $uri $uri/ /index.php?$query_string; } - location ~ \.php$ { include fastcgi_params;