Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Wcc723 committed Oct 1, 2023
1 parent 41dd768 commit cd0323e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/deploy-docker-vps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,6 @@ jobs:
ssh root@${{ secrets.HOST_NAME }} '
docker pull ${{ secrets.DOCKER_HUB_USERNAME }}/ironman-app-2023-amd64:latest
docker rm -f github-ac-sample || true
docker run -d -p 3003:3000 --name github-ac-sample --env-file /root/websample/node-env/.env ${{ secrets.DOCKER_HUB_USERNAME }}/ironman-app-2023-amd64:latest
docker run -d -p 3003:3000 --name github-ac-sample --env-file $HOME/websample/node-env/.env ${{ secrets.DOCKER_HUB_USERNAME }}/ironman-app-2023-amd64:latest
'
# Docker 指令中,不能使用 `~` 路徑,建議替換為其他的絕對路徑名稱(此範例作為演示直接使用 `/root`)

0 comments on commit cd0323e

Please sign in to comment.