prolog12345
prolog12345

Reputation: 137

Change name of heroku application

I just uploaded my application to heroku, when loading the web app in the web browser, the name of the application in the web browser tab is what i called it on my desktop "rails project", for production how could i change this so that it is a proper name, for example "website name"?

Upvotes: 5

Views: 5445

Answers (2)

Suvra Sarkar
Suvra Sarkar

Reputation: 21

This is really so simple step. At least it worked for me.

First of all go to your heroku dashboard and choose the app you want to rename. And there you just rename your application like you want. Accept all of the warnings.

Secondly you go to your .git folder of your app folder and then to the config file and open it in a text editor and at url change your app name exactly how you have renamed your dashboard app and don't delete the last .git. And save it.

Third and finally, you just choose the directory on your terminal and just upload your heroku app like you did earlier.

heroku login
git init
git add.
git commit -m "your message"

git push heroku master

Upvotes: 0

Dawn Green
Dawn Green

Reputation: 493

If you want to change the name of your app itself on Heroku's platform, open your terminal and enter the following:

heroku apps:rename newname

If you want to change the title that appears in the browser tab, go to your application.html.erb or whatever your layout file is that contains the html doc type and header and enter the title like this:

<title>My New App Name</title>

If you want to change the domain name that you navigate to in your browser, you'll want to enter this on the command line:

heroku domains:add www.example.com

You'll need to add CNAME records to your DNS file that point to Heroku. Their documentation explains it here:

https://devcenter.heroku.com/articles/custom-domains

Upvotes: 6

Related Questions