Heroku Guide: Create, Rename or Delete App


Many businesses use Heroku cloud platform to build, monitor and scale your business apps. It’s simplicity and development experience wins the heart of all developers who love to create solid applications without the server or hardware distractions. The process of creating to deleting an app has been made really simple by Heroku.

Contents

What is Heroku?

Heroku is a cloud platform that lets companies build, deliver, monitor and scale apps — we’re the fastest way to go from idea to URL, bypassing all those infrastructure headaches.

A developer on Quora said,

Different apps required a lot more flexibility in the hosting environment and deploying new versions of an app and installing gems is always going to be a hassle. Heroku makes all of this dead simple by abstracting it away behind a web service.

You interface with the service through git and the heroku gem, both of which are easy for many Ruby developers to use. To update and redeploy your app, all you do is push your repository to the heroku remote. If you find that you suddenly need to scale, you basically pay Heroku to allocate more resources for you or flip on additional services.

How to Create a Heroku App

1. Creating an App with any Name

To create a basic Heroku app with an arbit name, just follow the command given below:

heroku create

2. Create a Named App

If you want to name your Heroku app while creating it, follow the below command. Read this detailed post to point the git remote and test the newly created app.

heroku apps:create myapp

How to Rename Heroku App

1. Renaming Apps with Checkout

If you want to rename an app, it can be done easily at any moment by using the simple heroku command. For instance, if you want to rename an app named “oldname” to “newname”, change into the app’s git checkout and run the command:

heroku apps:rename newname

2. Renaming Apps without Checkout

You can rename an app while outside a git checkout by passing an explicit –app argument given below. Check out this post for more details on how to update the git remotes after renaming the app.

heroku apps:rename newname –app oldname

How to Delete a Heroku App

Deleting or removing a Heroku app is a very easy process and you can do it within a couple of minutes by following the below 2 methods alternatively.

1. From Dashboard

  • Go to the Heroku dashboard
  • Click on the APP

  • Select settings and scroll to the bottom of the page
  • Click on “Delete App” (red button)

  • A pop-up window will appear
  • Enter the name of the APP and click delete

  • Go to Dashboard > Personal apps and you will be able to see that the app has been removed

2. From Command Line

To delete an app from Heroku using the command line, you can use the heroku apps:destroy command and get it done. You can go back to command line and enter “heroku apps” to verify the APP is gone. Check the command here if you are not sure how to type it in.

Conclusion

With this we conclude our Heroku app guide, I shared all the commands which will be helpful to you for creating, renaming or deleting a Heroku app. For detailed guidelines on verifying or testing the app, I have linked to some useful resources as well.

I hope you found the solution to the problem you were facing, if not, just comment below and I will help you out in less than 24 hours. Do share this guide if you think it helped you so more people can benefit from this resource. Cheers!

Leave a Reply