Private runbook
새 사이트 추가 매뉴얼
도메인과 tenant DB 준비부터 콘텐츠 생성, controlled publish, 검색엔진 제출까지 순서대로 진행합니다.
A. 전체 흐름
- 1도메인 구매
- 2Cloudflare에 도메인 추가
- 3DNS A record 설정
- 4Cloudflare SSL/TLS Full 또는 Full(strict)
- 5Cloudflare Managed robots.txt OFF
- 6Ploi에서 tenant domain 추가
- 7SSL 발급
- 8Ploi에서 tenant DB 생성
- 9Listing Factory 관리자에서 사이트 추가
- 10DB 연결 테스트
- 11register dry-run
- 12content build dry-run
- 13content build 실행
- 14tenant migrate
- 15publish dry-run
- 16controlled publish
- 17verify-public-tenants 확인
- 18robots/sitemap 확인
- 19Search Console/Naver/Bing 제출
B
서버 배포 명령어
cd /home/ploi/listingfactory.co.kr || exit 1
git pull origin feature/tenant-content-isolation
composer install --no-interaction --prefer-dist --optimize-autoloader --no-dev
php artisan config:clear
php artisan route:clear
php artisan view:clear
php artisan cache:clear
php artisan optimize:clear || true
php artisan migrate --force
php artisan tenants:migrate --all --no-interaction
npm ci
npm run build
php artisan storage:link || true
php artisan config:cache
php artisan route:cache
php artisan view:cache
php artisan filament:cache-components --no-ansi
C
배포 후 검증 명령어
php artisan multisite:verify-public-tenants
php artisan multisite:security-audit --dry-run
curl -I https://listingfactory.co.kr/
curl -I https://busanroombar.kr/robots.txt
curl -I https://busanroombar.kr/sitemap.xml
curl -I https://busanroombar.kr/site-1784072185
D. 성공 기준
- ✓verify-public-tenants 5개 PASS
- ✓security-audit 위험 0
- ✓본체 / 200
- ✓tenant robots 200
- ✓tenant sitemap 200
- ✓tenant public page 200
E. 주의사항
- !자동 publish 금지
- !AI 비용 자동 발생 금지
- !이미지 큐 자동 등록 금지
- !tenant DB 삭제 금지
- !기존 tenant migration 파일 임의 수정 금지
- !Cloudflare Managed robots.txt OFF 유지
- !Ploi nginx 수정 시 tenant before 파일 삭제 금지
- !sudo 명령은 ubuntu 계정, Laravel 명령은 ploi 계정