修正 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

This commit is contained in:
2026-02-23 15:29:14 +08:00
parent 406d03297a
commit 71b676b533

View File

@@ -113,7 +113,7 @@ jobs:
"
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:
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
@@ -136,7 +136,7 @@ jobs:
--exclude='vendor' \
--exclude='storage' \
--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/
rm ~/.ssh/id_rsa_prod
@@ -147,7 +147,7 @@ jobs:
uses: appleboy/ssh-action@master
with:
host: 220.132.7.82
port: 2227
port: 2224
username: root
key: ${{ secrets.PROD_SSH_KEY }}
script: |
@@ -168,7 +168,7 @@ jobs:
uses: appleboy/ssh-action@master
with:
host: 220.132.7.82
port: 2227
port: 2224
username: root
key: ${{ secrets.PROD_SSH_KEY }}
script: |