about summary refs log tree commit diff
path: root/users/fcuny/blog
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2022-05-10 19:42:11 -0700
committerFranck Cuny <franck@fcuny.net>2022-05-10 19:42:11 -0700
commitafaa1136373f4070d4621257f4fa981356509370 (patch)
tree2eb62ae0d4113271538b88b9fd55cdc589c34e30 /users/fcuny/blog
parentdelete Makefile (diff)
downloadworld-afaa1136373f4070d4621257f4fa981356509370.tar.gz
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.
Diffstat (limited to 'users/fcuny/blog')
-rwxr-xr-xusers/fcuny/blog/scripts/deploy.sh2
1 files changed, 2 insertions, 0 deletions
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