Skip to content

Commit

Permalink
Fix - 마이그레이션 테스트
Browse files Browse the repository at this point in the history
  • Loading branch information
sayyyho authored Oct 6, 2024
1 parent 44ada6f commit 733a359
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 14 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,13 @@ jobs:
username: ${{ env.EC2_SSH_USER }}
key: ${{ env.PRIVATE_KEY }}
script: |
CONTAINER_ID=$(sudo docker ps -aq --filter "name=kaboo-connection-container")
CONTAINER_ID=$(sudo docker ps -aq --filter "name=dgu-booth")
if [ ! -z "$CONTAINER_ID" ]; then
sudo docker stop $CONTAINER_ID || true
sudo docker rm -f $CONTAINER_ID || true
fi
sudo docker pull ${{ env.DOCKER_IMAGE_NAME }}:latest
sudo docker run --name kaboo-connection-container -d -p 80:80 -p 3000:3000 -e TZ=Asia/Seoul ${{ env.DOCKER_IMAGE_NAME }}:latest
sudo docker run --name dgu-booth -d -p 80:80 -p 3000:3000 -e TZ=Asia/Seoul ${{ env.DOCKER_IMAGE_NAME }}:latest
sudo docker image prune -f
5 changes: 2 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ RUN apk add --no-cache nodejs npm
COPY --from=build /app/dist /usr/share/nginx/html

# Copy Node.js server files
COPY --from=build /app/server.cjs /app/server.cjs
COPY --from=build /app/node_modules /app/node_modules

# Remove default nginx config
Expand All @@ -34,7 +33,7 @@ RUN rm /etc/nginx/conf.d/default.conf
COPY ./nginx.conf /etc/nginx/conf.d

# Expose ports
EXPOSE 80 3000
EXPOSE 80

# Run both Nginx and Node.js server
CMD ["sh", "-c", "node /app/server.cjs & nginx -g 'daemon off;'"]
CMD ["sh", "-c", "node /app/server.cjs & nginx -g 'daemon off;'"]
9 changes: 0 additions & 9 deletions build.sh

This file was deleted.

0 comments on commit 733a359

Please sign in to comment.