title: rails 3.1 and heroku : routes modifications and problem removing the public/index.html
body: <p>Here is a problem while changing the target of the :root of my rails 3.1 project : </p>
  
  <p>I updated my config/routes.rb to point the root to a custom page.</p>
  
  <pre><code>root :to =&gt; 'pages#home'
  </code></pre>
  
  <p>Then, I removed the existing public/index.html.
  Everything is ok in local.</p>
  
  <p>I ran <code>git commit -am "message"</code>, the result was :
  <code>delete mode 100644 public/index.html</code></p>
  
  <p>I also committed my new routes.rb and the needed controllers and views.</p>
  
  <p>I pushed to heroku : <code>git push heroku master</code>
  And then I ran <code>heroku rake routes</code> the result was : </p>
  
  <pre><code>pages_home GET /pages/home(.:format)       {:controller=&gt;"pages", :action=&gt;"home"}
  pages_formations GET /pages/formations(.:format) {:controller=&gt;"pages", :action=&gt;"formations"}
  pages_music GET /pages/music(.:format)      {:controller=&gt;"pages", :action=&gt;"music"}
          root     /                           {:controller=&gt;"pages", :action=&gt;"home"}
          home     /home(.:format)             {:controller=&gt;"pages", :action=&gt;"home"}
    formations     /formations(.:format)       {:controller=&gt;"pages", :action=&gt;"formations"}
         music     /music(.:format)            {:controller=&gt;"pages", :action=&gt;"music"}
  </code></pre>
  
  <p>But if I go to my application page, I have an empty white screen.
  If I reset the public/index.html, I have this one displayed.</p>
  
  <p>So it seems like Heroku does not take my modifications into account. But the commit works : if I clone the project after deleting the file, I can see that it is deleted.</p>