herokugithubheroku-toolbelt

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"?


Solution

  • 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