up
This commit is contained in:
@@ -1,4 +1,20 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
# Ensure storage directories exist (for volume mounts)
|
||||
mkdir -p storage/framework/views \
|
||||
storage/framework/cache \
|
||||
storage/framework/sessions \
|
||||
storage/logs \
|
||||
storage/app/public
|
||||
|
||||
# Recreate symlink (lost on empty volume)
|
||||
if [ ! -L public/storage ]; then
|
||||
ln -sf ../storage/app/public public/storage
|
||||
fi
|
||||
|
||||
# Ensure writable
|
||||
chmod -R 775 storage bootstrap/cache
|
||||
chown -R www-data:www-data storage bootstrap/cache
|
||||
|
||||
exec "$@"
|
||||
|
||||
@@ -30,6 +30,7 @@ server {
|
||||
fastcgi_index index.php;
|
||||
include fastcgi_params;
|
||||
fastcgi_param APP_ENV production;
|
||||
fastcgi_param HTTPS on;
|
||||
}
|
||||
|
||||
location ~ /\.(?!well-known).* {
|
||||
|
||||
Reference in New Issue
Block a user