Docker
CI / ci (push) Canceled after 0s

This commit is contained in:
Stefan Lazic committed 2026-09-05 08:36:54 +01:00
1 parent 2ef3654841
commit c4325018e0
7 files changed
+312 -23

No files matched your search

+24
View File
@@ -0,0 +1,24 @@
#!/bin/sh
set -eu
cd /var/www/html
mkdir -p \
storage/framework/cache/data \
storage/framework/sessions \
storage/framework/views \
storage/logs \
bootstrap/cache
chown -R www-data:www-data storage bootstrap/cache
chmod -R ug+rwX storage bootstrap/cache
# This is safe to run on every start and does not perform migrations.
php artisan storage:link --force >/dev/null 2>&1 || true
if [ "$(id -u)" = "0" ]; then
exec gosu www-data "$@"
fi
exec "$@"
+26
View File
@@ -0,0 +1,26 @@
server {
listen 80;
listen [::]:80;
server_name _;
root /var/www/html/public;
index index.php;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location = /favicon.ico { access_log off; log_not_found off; }
location = /robots.txt { access_log off; log_not_found off; }
location ~ \.php$ {
try_files $uri =404;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME /var/www/html/public$fastcgi_script_name;
fastcgi_param DOCUMENT_ROOT /var/www/html/public;
fastcgi_pass app:9000;
fastcgi_read_timeout 90s;
}
location ~ /\. { deny all; }
}