v13
All checks were successful
Koori-ERP-Deploy / auto-deploy (push) Successful in 34s

This commit is contained in:
2025-12-31 11:09:25 +08:00
parent 3b0feae7b4
commit 263e079d32

View File

@@ -21,10 +21,10 @@ jobs:
- name: 3. Build and Start Docker - name: 3. Build and Start Docker
run: | run: |
APP_PORT=$(grep '^APP_PORT=' .env | cut -d '=' -f2) export $(grep -v '^#' .env | xargs)
echo "Debug: APP_PORT=$APP_PORT" echo "Debug: APP_PORT=$APP_PORT"
APP_PORT=$APP_PORT docker compose down --remove-orphans docker compose down --remove-orphans
APP_PORT=$APP_PORT docker compose up -d --build --force-recreate docker compose up -d --build --force-recreate
# 【強制注入】不管是掛載失效還是路徑對不上,這招一定能把 web.php 送進去 # 【強制注入】不管是掛載失效還是路徑對不上,這招一定能把 web.php 送進去
tar -cf - . | docker exec -i koori-erp-laravel.test-1 tar -xf - -C /var/www/html tar -cf - . | docker exec -i koori-erp-laravel.test-1 tar -xf - -C /var/www/html