feat: add one-command deploy script (npm run deploy)
This commit is contained in:
+2
-1
@@ -8,7 +8,8 @@
|
|||||||
"build": "vite build",
|
"build": "vite build",
|
||||||
"preview": "vite preview",
|
"preview": "vite preview",
|
||||||
"clean": "rm -rf dist",
|
"clean": "rm -rf dist",
|
||||||
"lint": "tsc --noEmit"
|
"lint": "tsc --noEmit",
|
||||||
|
"deploy": "bash scripts/deploy.sh"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@fal-ai/client": "^1.10.1",
|
"@fal-ai/client": "^1.10.1",
|
||||||
|
|||||||
Executable
+17
@@ -0,0 +1,17 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
set -e
|
||||||
|
|
||||||
|
echo "🚀 [1/3] Building production Docker images..."
|
||||||
|
docker compose build
|
||||||
|
|
||||||
|
echo "📦 [2/3] Pushing images to Gitea Container Registry..."
|
||||||
|
docker push git.digifox.live/digifoxkurama/titan-web:latest
|
||||||
|
docker push git.digifox.live/digifoxkurama/titan-api:latest
|
||||||
|
|
||||||
|
echo "🔄 [3/3] Triggering Coolify zero-downtime reload..."
|
||||||
|
RESPONSE=$(curl -s -X POST \
|
||||||
|
-H "Authorization: Bearer 8|fPDOJYtoML5NxxGMJdN4OHbCIfyME8vwcvYtlWab7939e30c" \
|
||||||
|
https://deploy.digifox.live/api/v1/services/lbvulal59jsvjqi4rvfw8i4q/restart)
|
||||||
|
|
||||||
|
echo "✅ Deployed! Coolify status: $RESPONSE"
|
||||||
|
echo "🌐 Live URL: https://titan.houseofwebsites.ai"
|
||||||
Reference in New Issue
Block a user