From b2e7df5b3ea82e14934cdb5ff47b0e7edc6dfee0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=9C=E5=A4=9C?= Date: Wed, 19 Jun 2024 01:17:00 +0800 Subject: [PATCH 1/2] fix: Dockerfile --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 8e34115..57066fb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -28,4 +28,4 @@ COPY --from=builder /app . # EXPOSE 1015 # 定義啟動命令 -CMD ["npm", "--", "run", "serve", "--", "--port", "8080", "--host", "localhost"] +CMD ["npm", "run", "serve", "--", "--port", "8080", "--host", "localhost"] From 0d8c7073cda1cb8554daadb4a9f001db627910f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=9C=E5=A4=9C?= Date: Wed, 19 Jun 2024 01:18:30 +0800 Subject: [PATCH 2/2] fix: deploy --- .github/workflows/deploy.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 299d1fd..669a706 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -39,4 +39,6 @@ jobs: - name: Load image run: | docker load --input /tmp/docswebsite.tar - docker image ls -a \ No newline at end of file + docker image ls -a + cd /home/whes1015 + docker compose up -d \ No newline at end of file