chore(publish): replace source tree with static export at repo root
Publish the prerendered static export (index.html, 404.html, cinema/,
c/, about/, for-cinemas/, for-film-lovers/, assets/, images/, og/,
sitemap.xml, robots.txt) as the site root and remove the React Router
+ Nitro source tree from this branch. Source remains available in
history at 0548772.
Note: public/sw.js here reports VERSION v2.0.5 while the removed source
tree (v2.1.0) was newer, and .gitignore was not carried over.
This commit is contained in:
1 parent
05487728a7
commit
e6c4ebff48
394 files changed
+3977
-37891
No files matched your search
@@ -1,38 +0,0 @@
|
||||
services:
|
||||
web:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
image: alterflixhub-web:latest
|
||||
# ห้ามใส่ container_name: ชื่อต้องไม่ตายตัว ไม่งั้น Dokploy / หลายอินสแตนซ์บนเครื่องเดียวชนกัน
|
||||
env_file:
|
||||
- path: .env
|
||||
required: false
|
||||
environment:
|
||||
# PORT = พอร์ตที่ Nitro ฟัง *ใน* คอนเทนเนอร์
|
||||
PORT: ${PORT:-8080}
|
||||
HOST: 0.0.0.0
|
||||
NODE_ENV: production
|
||||
TZ: ${TZ:-Asia/Bangkok}
|
||||
# SITE_URL / SHARE_ORIGIN ตั้งใน .env เมื่อต้องบังคับโดเมน
|
||||
# ไม่ publish พอร์ตออก host: reverse proxy (Dokploy/Traefik) ต่อเข้าพอร์ตนี้ผ่าน network ของ compose
|
||||
# ต้องเปิดพอร์ตออก host (รันในเครื่อง) → docker-compose.override.yml จัดการให้อัตโนมัติ
|
||||
expose:
|
||||
- "${PORT:-8080}"
|
||||
volumes:
|
||||
# named volume: Docker คัดลอก ownership (uid 1000 = user node) จาก image ให้ → เขียนไฟล์ได้
|
||||
# (bind mount ./data บน Linux จะเป็น root:root ทำให้แอปเขียน content/uploads ไม่ได้)
|
||||
- data:/app/data
|
||||
restart: unless-stopped
|
||||
healthcheck:
|
||||
test:
|
||||
- CMD-SHELL
|
||||
- "node -e \"fetch('http://127.0.0.1:'+(process.env.PORT||8080)+'/').then(r=>process.exit(r.ok?0:1)).catch(()=>process.exit(1))\""
|
||||
interval: 30s
|
||||
timeout: 5s
|
||||
start_period: 20s
|
||||
retries: 3
|
||||
|
||||
volumes:
|
||||
data:
|
||||
|
||||
Reference in new issue
Block a user