starting with heroku; fail updating rails app

after a few months learning a bit about rails and making some stuff local, I wanted to try to upload a simple rails app to heroku. Which, by the way, was a pain in the ass because of installing issues of Postgresql. But ok, that’s done.

Now I create an app on heroku, I did the login, key thing, git, and uploaded. Was fine, very easy after all. I just uploaded an empty rails app, to try heroku.
Well, then I add a controller. Upload again via git push heroku master and not so fine! I did scaffold, for my articulo controller. And I wasn’t able to open the URL once pushed to heroke on someurl/articulos. I got an 404 heroku message here:

  • Cannot delete a remote branch created unintentionally
  • git tag: Show only my tags?
  • How to handle case sensitive branches on Git over Windows
  • Understanding pull requests on GitHub: What happens, when the requesting repository is deleted?
  • Renaming local GIT branch does not change name on 'Origin'
  • Build operation failed without specifying any errors for React Native XCode project
  • Then I create a controller for the home site and get rid of the “welcome aboard” default site. Again push heroku… On terminal I got messages all updated, and lauching. All fine.

    But then I access and again, the “welcome aboard” default page.

    Locally it works fine. But now I’m not sure if I’m doing it well. It scares me that no failing messages are to see nowhere, but obviously it fails.

    After editing my rails app, I always do this:

    $ git init
    $ git add .
    $ git commit -m "init"
    $ git push heroku master

    Like the documentation says on heroku. But, no error and no updating.

    Thanks in advice.

  • how to detach alternates after git clone --reference?
  • Git: restore diverged repository after failed rebase
  • How to get all GIT branches monitored by TFS CI?
  • Staging again files during pre-commit hook?
  • How to undo git pull from unrelated project?
  • How to credit contributions to another account for github?
  • One Solution collect form web for “starting with heroku; fail updating rails app”

    From what I see from heroku devcenter, the git init part is only to be done on the first initial creation of the git repo, not “After editing my rails app”.

    In other words, you shouldn’t have to “always do” a git init after editing your rail apps.

    For the first push, I would recommend a:

    git push -u heroku master

    That way, all the subsequent push will be a simple:

    git push
    Git Baby is a git and github fan, let's start git clone.