Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do i shutdown my heroku app?

Tags:

I've slowly battled through to the point where I have a working Grails app on Heroku. I'm going to bed now so I want to shut it down so I don't continue to use up my 750 free hours of my Dyno. It is probably obvious but I can't find how to shutdown my Heroku web server and restart it again in the morning.

like image 292
Pomum Avatar asked Feb 09 '13 03:02

Pomum


People also ask

How do I turn off Heroku app?

If you wish to stop a running one-off dyno, use heroku ps:stop with its name. A one-off dyno will not stop if you issue heroku ps:restart on your application.

How do I know if my Heroku server is running?

You can run heroku open , which will open your app in your default web browser. Of course you can also manually navigate to your app's URL, which should be be https://<your-app-name>.herokuapp.com . You can also run heroku ps which will show your app's dynos and their status.

What is Heroku running on?

Heroku runs your apps inside dynos — smart containers on a reliable, fully managed runtime environment. Developers deploy their code written in Node, Ruby, Java, PHP, Python, Go, Scala, or Clojure to a build system which produces an app that's ready for execution.


2 Answers

To shut down your Heroku app scale the web processes to 0:

heroku ps:scale web=0

See the Usage & Billing dev centre article: "A web dyno that is idled continues to accrue usage". I believe maintenance mode will continue to accrue time; it simply serves a static page to visitors instead of serving your app.

Keep in mind each app receives 750 free billing hours per month. Depending on your intended usage, this may mean you don't need to shut down (i.e. if you only plan to run a single dyno for the whole month).

like image 136
culix Avatar answered Oct 11 '22 16:10

culix


From web: Personal => Your App Name => Overview => Configure Dynos => Click on edit against web => Flip the switch => Confirm

like image 45
Sunny Avatar answered Oct 11 '22 18:10

Sunny