Skip to content

Commit

Permalink
✨ CI/CD 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
J-Yong99 committed Apr 7, 2024
1 parent e775316 commit e371508
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions backend/moment/moment-server/deploy.sh
Original file line number Diff line number Diff line change
@@ -1,15 +1,5 @@
ssh -tt -p ${SERVER_PORT} ${SERVER_USER}@${SERVER_HOST} -i key.txt -o StrictHostKeyChecking=no << 'ENDSSH'
cd capstone-2024-22/backend/moment/moment-server
# Check if the container is already running
if [ "$(docker ps -q -f name=moment-server)" ]; then
# If the container is running, stop and remove it
docker stop moment-server
docker rm moment-server
fi
# Pull the latest changes from the repository
git pull origin "deploy/v1"
# Build and start the container
docker-compose down
docker-compose up --build -d
ENDSSH

0 comments on commit e371508

Please sign in to comment.