add deploment
This commit is contained in:
parent
8322bbef18
commit
228f6a78c9
@ -1,7 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
APP_NAME="meti-backend"
|
||||
PORT="4000"
|
||||
APP_NAME="meti-frontend"
|
||||
PORT="3000"
|
||||
|
||||
echo "🔄 Pulling latest code..."
|
||||
git pull
|
||||
@ -15,9 +15,7 @@ docker rm $APP_NAME 2>/dev/null
|
||||
|
||||
echo "🚀 Running new container..."
|
||||
docker run -d --name $APP_NAME \
|
||||
-p 4001:$PORT \
|
||||
-v "$(pwd)/infra":/infra:ro \
|
||||
-v "$(pwd)/templates":/templates:ro \
|
||||
-p 4002:$PORT \
|
||||
$APP_NAME:latest
|
||||
|
||||
echo "✅ Deployment complete."
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user