Compare commits

...

2 Commits

Author SHA1 Message Date
71b676b533 修正 CI/CD deploy-production 連線埠號為 2224 (正式環境)
All checks were successful
Koori-ERP-Deploy-System / deploy-demo (push) Has been skipped
Koori-ERP-Deploy-System / deploy-production (push) Successful in 56s
2026-02-23 15:29:14 +08:00
406d03297a 再次觸發 CI/CD (修復正式機 Port 2227 上的 Docker 權限問題)
Some checks failed
Koori-ERP-Deploy-System / deploy-demo (push) Has been skipped
Koori-ERP-Deploy-System / deploy-production (push) Failing after 1m8s
2026-02-23 15:25:07 +08:00

View File

@@ -113,7 +113,7 @@ jobs:
" "
docker exec star-erp-laravel chmod -R 775 /var/www/html/storage /var/www/html/bootstrap/cache docker exec star-erp-laravel chmod -R 775 /var/www/html/storage /var/www/html/bootstrap/cache
# --- 2. 正式環境部署 (220.132.7.82:2227) --- # --- 2. 正式環境部署 (220.132.7.82:2224) ---
deploy-production: deploy-production:
if: github.ref == 'refs/heads/main' if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest runs-on: ubuntu-latest
@@ -136,7 +136,7 @@ jobs:
--exclude='vendor' \ --exclude='vendor' \
--exclude='storage' \ --exclude='storage' \
--exclude='public/build' \ --exclude='public/build' \
-e "ssh -p 2227 -i ~/.ssh/id_rsa_prod -o StrictHostKeyChecking=no" \ -e "ssh -p 2224 -i ~/.ssh/id_rsa_prod -o StrictHostKeyChecking=no" \
./ root@220.132.7.82:/var/www/star-erp/ ./ root@220.132.7.82:/var/www/star-erp/
rm ~/.ssh/id_rsa_prod rm ~/.ssh/id_rsa_prod
@@ -147,7 +147,7 @@ jobs:
uses: appleboy/ssh-action@master uses: appleboy/ssh-action@master
with: with:
host: 220.132.7.82 host: 220.132.7.82
port: 2227 port: 2224
username: root username: root
key: ${{ secrets.PROD_SSH_KEY }} key: ${{ secrets.PROD_SSH_KEY }}
script: | script: |
@@ -168,7 +168,7 @@ jobs:
uses: appleboy/ssh-action@master uses: appleboy/ssh-action@master
with: with:
host: 220.132.7.82 host: 220.132.7.82
port: 2227 port: 2224
username: root username: root
key: ${{ secrets.PROD_SSH_KEY }} key: ${{ secrets.PROD_SSH_KEY }}
script: | script: |