2

git push heroku everything is fine, then heroku open - but it is only the rails landing page that shows. When I try rails s my home page is loaded perfectly. I deleted the public/index.html and commited/pushed changes to github. What could be causing this?

routes.rb:

Oxenblog::Application.routes.draw do root :to => 'static_pages#about' match '/about', to: 'static_pages#about' match '/contact', to: 'static_pages#contact' match '/projects', to: 'static_pages#projects' 

I think it is a problem with what I am doing with heroku, because it looks fine in localhost...

it is something with the git branches. I have added commited and pushed to both github and heroku , and Everything is up to date . however heroku open is still showing the rails landing page, very frustrating. I am on the master branch, this is a newish project so I have yet to make any new branches.

4
  • Do you use multiple branches or are you using only master branch? Commented Apr 15, 2013 at 23:24
  • On branch master # Your branch is ahead of 'origin/master' by 1 commit. then I did git push origin master - still same rails landing page Commented Apr 15, 2013 at 23:28
  • did you do git push heroku master? Commented Apr 15, 2013 at 23:57
  • when i enter that command, i receive Everything up-to-date - yet still shows the rails page, very confusing... Commented Apr 15, 2013 at 23:59

1 Answer 1

3

Deleting the default Rails homepage isn't enough, you have to instruct git to remove all deleted files. This is the command I use:

git add . git commit -am "save all changed files & remove deleted ones" git push heroku master 

Other commands that should work:

git add . -A git commit -m "..." git add -u git commit -m "..." 

Note that if you delete files before doing any commits then git can't add them.

Sign up to request clarification or add additional context in comments.

1 Comment

Are you saying OP had deleted filed but didn't do git rm --cached? I'm having the same problem; the index.html file has been deleted and pushed, and I confirmed via heroku run ls public that it doesn't exist on heroku, yet I still

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.