Laravel 第一版 修正問題 20250602

This commit is contained in:
allen.yan 2025-06-02 10:55:14 +08:00
parent 22a4d0264a
commit b0e44bee17
3 changed files with 7 additions and 5 deletions

View File

@ -43,7 +43,7 @@ services:
ports:
- "80:80"
volumes:
- ./data/KTVCentral/public:/var/www/html/public
- ./data/KTVCentral:/var/www/html
- ./docker/nginx/:/etc/nginx/templates
- ./data/logs/nginx/:/var/log/nginx
depends_on:
@ -56,3 +56,4 @@ services:
networks:
app_network:
name: ${APP_NAME}_network
external: true

View File

@ -1,6 +1,6 @@
server {
listen ${NGINX_PORT};
server_name ${NGINX_HOST}; # ✅ 加上分號
server_name ${NGINX_HOST};
root /var/www/html/public;
index index.php index.html;
@ -16,7 +16,8 @@ server {
include fastcgi_params;
fastcgi_pass app:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param SCRIPT_FILENAME /var/www/html$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
}
location ~ /\.ht {

View File

@ -32,7 +32,7 @@ if [ "$WIPE" == "true" ]; then
fi
echo "🛑 Stopping APP services..."
docker compose -p "$PROJECT_NAME" -f docker-compose.app.yml down $EXTRA_FLAGS
docker compose -p "$PROJECT_NAME" -f docker-compose.yml down $EXTRA_FLAGS
if [ "$WIPE" == "true" ]; then
echo "🧹 所有資料volumes, image已清除"