From afaa1136373f4070d4621257f4fa981356509370 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Tue, 10 May 2022 19:42:11 -0700 Subject: deploy: stop the flyctl agent at the end I ran into the following issue: ``` The agent failed to start with the following error log: 162022/05/11 02:38:11.375368 srv another instance of the agent is already running ``` I'm not sure this is the right approach, but it's a start. --- users/fcuny/blog/scripts/deploy.sh | 2 ++ 1 file changed, 2 insertions(+) (limited to 'users/fcuny/blog/scripts') diff --git a/users/fcuny/blog/scripts/deploy.sh b/users/fcuny/blog/scripts/deploy.sh index ede848c..69ad82a 100755 --- a/users/fcuny/blog/scripts/deploy.sh +++ b/users/fcuny/blog/scripts/deploy.sh @@ -10,3 +10,5 @@ VERSION=$(flyctl info -j |jq -r '.App | "fcuny.net/v\(.Version)"') git tag -a --message ${VERSION} ${VERSION} git push origin --all git push origin --tags + +flyctl agent stop -- cgit 1.4.1