add deploment

This commit is contained in:
Aditya Siregar 2025-08-15 23:06:47 +07:00
parent 8322bbef18
commit 228f6a78c9

View File

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
APP_NAME="meti-backend" APP_NAME="meti-frontend"
PORT="4000" PORT="3000"
echo "🔄 Pulling latest code..." echo "🔄 Pulling latest code..."
git pull git pull
@ -15,9 +15,7 @@ docker rm $APP_NAME 2>/dev/null
echo "🚀 Running new container..." echo "🚀 Running new container..."
docker run -d --name $APP_NAME \ docker run -d --name $APP_NAME \
-p 4001:$PORT \ -p 4002:$PORT \
-v "$(pwd)/infra":/infra:ro \
-v "$(pwd)/templates":/templates:ro \
$APP_NAME:latest $APP_NAME:latest
echo "✅ Deployment complete." echo "✅ Deployment complete."