- docker-compose: shared-storage 볼륨 마운트 제거 - entrypoint: storage/app/tenants 디렉토리 생성으로 변경 - nginx: tenant-storage alias 경로 변경
19 lines
674 B
Bash
Executable File
19 lines
674 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# 0. Nginx 기본 사이트 설정 비활성화 (충돌 방지)
|
|
rm -f /etc/nginx/sites-enabled/default
|
|
|
|
# 1. 퍼미션 설정 (mng)
|
|
chown -R www-data:www-data /var/www/mng/storage /var/www/mng/bootstrap/cache
|
|
chmod -R 775 /var/www/mng/storage /var/www/mng/bootstrap/cache
|
|
|
|
# 2. tenant storage 퍼미션 (명함/신분증/통장/게시판 첨부파일 등)
|
|
mkdir -p /var/www/mng/storage/app/tenants
|
|
chown -R www-data:www-data /var/www/mng/storage/app/tenants
|
|
chmod -R 775 /var/www/mng/storage/app/tenants
|
|
|
|
# 3. storage:link (실패해도 무시)
|
|
cd /var/www/mng && php artisan storage:link || true
|
|
|
|
# 4. supervisor 실행(nginx+php-fpm)
|
|
exec /usr/bin/supervisord |