Search code examples
ruby-on-railsruby-on-rails-3githerokucedar

Over-write app on Heroku with new app


I had an app up on Heroku with an app name I like but with a codebase I don't intend on using. I renamed the app for the project I don't want. I then pushed to Cedar with the new app I'm working on and explicitly declared the name of the project I want using the original app name which I stopped working on. Now when I go to that app name I only see the old app even though I pushed the new up up there. What do I do to get the new app I'm working on to work with the app name I like?

I'm assuming I have to manually delete everything on Heroku and then just do a "git push heroku master" again and everything will be fine but since I'm still new to all this I'd like to know what the proper procedure is.

Thank you.

Here is what I mean:
http://AppNameILike.heroku.com
#rename it to:
http://AppNameIlike-OLD.heroku.com
#create new heroku app with new project (notice recycling the name I like):
http://AppNameILike.heroku.com
#This new app still shows my old app

Solution

  • Have you used the heroku rename command?

    http://devcenter.heroku.com/articles/renaming-apps

    $ heroku rename newname
    http://newname.heroku.com/ | [email protected]:newname.git
    Git remote heroku updated
    

    When you changed the subdomain of a heroku app, you change the git push url (i.e. the heroku git remote). Therefore you also need to use the heroku rename command for having a correct git "connection" to heroku.