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