Is it possible to disable an app without deleting it?

I have a preview environment which is used very infrequently. Is it possible to disable/turn the app off rather than leave it running constantly?

I know I can delete the app, but then I’d have to re-set it up each time I want to use the preview environment.

EDIT: Via the CLI it can be suspended, it does not appear to be an option via the dashboard?

1 Like

Resume and suspend are olds features, we recommend using flyctl scale count 0 to disable.

We are improving our dashboard. Just yesterday we’ve deployed a new feature Improvement: Scale memory via dashboard and we will eventually add the option for apps to be scaled/suspended from there too

3 Likes

Thanks!

If I then trigger a deploy on that app do I need to run flyctl scale count 1 or does it do that automatically?

1 Like

You might need to flyctl scale count 1 before deploying

2 Likes

Thanks @stibbs for the question! I was trying to do the same in the UI and was surprised not to see a button anywhere.

2 Likes

Thanks for the feedback. We are aware of this but since we are improving how some things work internally we are waiting on these UI improvements so we can deliver the best version :slight_smile:

1 Like

I can’t find any way to stop the app, so I have to destroy it permanantly.

docs told me to scale it, but it asks me for a credit card.
the web UI only allows me to give the app more memory.
isn’t it the most natural thing that I want to stop my app from running?

4 Likes

internal command is OK, however UI is not update this post time.

fly scale count 0 works only for the app, but it doesn’t disable a database. How to disable it too? Still no UI button for it after 2 years is scary.