chore(docker): 啟動時自動檢查並建立 storage 軟連結
All checks were successful
Koori-ERP-Deploy-System / deploy-demo (push) Has been skipped
Koori-ERP-Deploy-System / deploy-production (push) Successful in 49s

This commit is contained in:
2026-01-29 09:45:12 +08:00
parent b1745555cc
commit b613cdb796
2 changed files with 10 additions and 0 deletions

View File

@@ -15,6 +15,11 @@ fi
chmod -R ugo+rw /.composer chmod -R ugo+rw /.composer
# 確保 storage 軟連結存在
if [ ! -L /var/www/html/public/storage ]; then
php /var/www/html/artisan storage:link
fi
if [ $# -gt 0 ]; then if [ $# -gt 0 ]; then
if [ "$SUPERVISOR_PHP_USER" = "root" ]; then if [ "$SUPERVISOR_PHP_USER" = "root" ]; then
exec "$@" exec "$@"

View File

@@ -15,6 +15,11 @@ fi
chmod -R ugo+rw /.composer chmod -R ugo+rw /.composer
# 確保 storage 軟連結存在
if [ ! -L /var/www/html/public/storage ]; then
php /var/www/html/artisan storage:link
fi
if [ $# -gt 0 ]; then if [ $# -gt 0 ]; then
if [ "$SUPERVISOR_PHP_USER" = "root" ]; then if [ "$SUPERVISOR_PHP_USER" = "root" ]; then
exec "$@" exec "$@"