This commit is contained in:
@@ -16,6 +16,8 @@ jobs:
|
||||
|
||||
- name: 2. Sync Files to Running Container
|
||||
run: |
|
||||
docker compose down --remove-orphans
|
||||
docker compose up -d --build --force-recreate
|
||||
# 這一步最關鍵!它把剛抓下來的新 Code 塞進去「正在跑」的容器
|
||||
# 它不會刪掉你的 .env,因為它是用 tar 覆蓋進去
|
||||
tar -cf - . | docker exec -i koori-erp-laravel.test-1 tar -xf - -C /var/www/html
|
||||
|
||||
Reference in New Issue
Block a user