reset again
All checks were successful
Koori-ERP-Deploy / auto-deploy (push) Successful in 47s

This commit is contained in:
2025-12-31 10:06:37 +08:00
parent e3ac5e3638
commit ead8011628

View File

@@ -48,3 +48,14 @@ jobs:
# 同時照顧 www-data 和 sail
docker exec koori-erp-laravel.test-1 chmod -R 777 /var/www/html/storage
docker exec koori-erp-laravel.test-1 php artisan view:clear
- name: 6. Build Frontend Assets (Vite)
run: |
# 1. 進入容器安裝 NPM 套件
docker exec -w /var/www/html koori-erp-laravel.test-1 npm install
# 2. 執行 Vite 編譯 (這會產生 manifest.json)
docker exec -w /var/www/html koori-erp-laravel.test-1 npm run build
# 3. 再次確保編譯出來的 public/build 權限也是正確的
docker exec koori-erp-laravel.test-1 chown -R www-data:www-data /var/www/html/public