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 6, 2024
1 parent 2f78f9d commit cc0691a
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ eureka:
register-with-eureka: true
fetch-registry: true
service-url:
defaultZone: http://host.docker.internal:8761/eureka
defaultZone: http://wasuphj.synology.me:8761/eureka
# defaultZone: http://localhost:8761/eureka
# instance:
# instance-id: ${spring.application.name}:${spring.application.instance_id:${random.value}}
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ eureka:
register-with-eureka: true
fetch-registry: true
service-url:
defaultZone: http://host.docker.internal:8761/eureka
defaultZone: http://wasuphj.synology.me:8761/eureka
# defaultZone: http://localhost:8761/eureka
# instance:
# instance-id: ${spring.application.name}:${spring.application.instance_id:${random.value}}
11 changes: 10 additions & 1 deletion backend/moment/moment-server/deploy.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
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 up --build -d
ENDSSH
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ eureka:
register-with-eureka: false
fetch-registry: false
service-url:
defaultZone: http://host.docker.internal:${server.port}/eureka/
defaultZone: http://wasuphj.synology.me:8761/eureka
# defaultZone: http://localhost:${server.port}/eureka/
Original file line number Diff line number Diff line change
Expand Up @@ -68,5 +68,5 @@ eureka:
register-with-eureka: true
fetch-registry: true
service-url:
defaultZone: http://host.docker.internal:8761/eureka
defaultZone: http://wasuphj.synology.me:8761/eureka
# defaultZone: http://localhost:8761/eureka
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ eureka:
register-with-eureka: true
fetch-registry: true
service-url:
defaultZone: http://host.docker.internal:8761/eureka
defaultZone: http://wasuphj.synology.me:8761/eureka
# defaultZone: http://localhost:8761/eureka
# instance:
# instance-id: ${spring.application.name}:${spring.application.instance_id:${random.value}}
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ eureka:
register-with-eureka: true
fetch-registry: true
service-url:
# defaultZone: http://host.docker.internal:8761/eureka
defaultZone: http://localhost:8761/eureka
defaultZone: http://wasuphj.synology.me:8761/eureka
# defaultZone: http://localhost:8761/eureka

logging:
level:
Expand Down

0 comments on commit cc0691a

Please sign in to comment.