How to stop manually and deploy after a while.

I want to manually stop an app completely and then deploy a new version after a few moments. Because my secondary database, my air quality API only responds to one running app.

hi @HunterX

So you want to handle the app restart manually? There might be a better way than using flyctl commands, but you’d need to provide a bit more info about your app and the limitations on the API.

Here are the options for doing this manually.

You can scale your app down to 0 Machines and then redeploy:
fly scale count 0
wait some time, then
fly deploy

You can also just restart the app, which will restart all the app’s Machines:
fly apps restart my-app-name

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.