Victor
Victor

Reputation: 351

Rails: Routes works locally, not on Heroku

I am trying to learn Ruby on Rails using this Rails Tutorial. Earlier, I got everything working fine but since Rails was updated to 3.2, I've tried doing it again.

I got to this point where I am trying to customize the routes for my static pages.

http://ruby.railstutorial.org/chapters/filling-in-the-layout?version=3.2#sec:rails_routes

Locally, it works but when I push to Heroku, I get the default Rails page even though I have deleted public/index.html

Does anyone have any idea what the problem might be?

Upvotes: 1

Views: 904

Answers (1)

stephenmurdoch
stephenmurdoch

Reputation: 34603

do:

git add -u .
git commit -m "removing public/index.html file from git repo"
git push heroku master

that will fix it

Upvotes: 1

Related Questions