about summary refs log tree commit diff
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
commitec2772d59bf467445b8c0984653ddae8cd67d64f (patch)
tree0cc4fae7cb278350693551fd7541ccb0cd368b33
parentdelete Makefile (diff)
downloadfcuny.net-ec2772d59bf467445b8c0984653ddae8cd67d64f.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.
-rwxr-xr-xscripts/deploy.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/deploy.sh b/scripts/deploy.sh
index ede848c..69ad82a 100755
--- a/scripts/deploy.sh
+++ b/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