forked from kookmin-sw/cap-template
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
1 addition
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |