Skip to content

Commit 088c594

Browse files
committed
chore: add --restart always to deploy to vm
1 parent 6da02f8 commit 088c594

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

.github/workflows/cd_frontend.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ jobs:
6767
docker rm collabydraw-frontend || true
6868
docker run -d \
6969
--name collabydraw-frontend \
70+
--restart always \
7071
-p 3000:3000 \
7172
-e DATABASE_URL=${{ secrets.DATABASE_URL }} \
7273
-e JWT_SECRET=${{ secrets.JWT_SECRET }} \

.github/workflows/cd_ws.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ jobs:
5050
docker rm collabydraw-websocket || true
5151
docker run -d \
5252
--name collabydraw-websocket \
53+
--restart always \
5354
-p 8080:8080 \
5455
-e DATABASE_URL=${{ secrets.DATABASE_URL }} \
5556
coderomm/collabydraw-websocket:${{ github.sha }}

docker/Dockerfile.frontend

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,5 +61,5 @@ RUN DATABASE_URL=${DATABASE_URL} JWT_SECRET=${JWT_SECRET} pnpm run build
6161
# Expose the port
6262
EXPOSE 3000
6363

64-
# Start the web application
65-
CMD ["pnpm", "run", "start:web"]
64+
# Start the collabydraw application
65+
CMD ["pnpm", "run", "start:collabydraw"]

0 commit comments

Comments
 (0)