Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6021783
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T03:45:49+00:00 2026-05-23T03:45:49+00:00

I went through the steps to install git and the heroku gem and successfully

  • 0

I went through the steps to install git and the heroku gem and successfully pushed my app to heroku.
The problem is, it shows a standard “You’re Riding Ruby on Rails” page even though the local app I have has routes set up to root to a certain controller/page. I have also deleted the index.html page from /public.

Any idea why this is happening? I suspect I might needed to switch from development to deployment somehow but still, I deleted the index.html, why is it still showing up on heroku?

EDIT: Going to mysite.heroku/login and other pages I’ve created works fine for some reason, so nevermind on the deployment thing.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T03:45:50+00:00Added an answer on May 23, 2026 at 3:45 am

    When you’re using git and delete a file, that file is not automatically removed from the git repo. So when you git push heroku the file still exists and gets pushed to Heroku.

    You can tell if this is the case with git status, which will show something like:

    # Changes not staged for commit:
    #   (use "git add/rm <file>..." to update what will be committed)
    #   (use "git checkout -- <file>..." to discard changes in working directory)
    #
    #       deleted:    public/index.html
    

    In order to remove the file, you need to use git rm. In this case you need to do something like:

    git rm public/index.html
    git commit -m "Removed public/index.html"
    

    which will remove the file from the current branch.

    Now when you do

    git push heroku
    

    the file won’t be included, and so you’ll be routed to the controller as specified in routes.rb.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I just went through the install of Ruby 1.7.2 and for some reason I
So I went through the steps to build a basic roo application here: http://static.springsource.org/spring-roo/reference/html/beginning.html
Somebody please help me out. This problem is killing me. I went through tones
I've created my first CLR table valued function. The steps I went through were:
I went through a period of being interested in how quantum computers work and
I just went through some MVC tutorials after checking this site out for a
I recently started learning Emacs . I went through the tutorial, read some introductory
I went through this tutorial to create a MobileSubstrate addon. I could compile the
I went through many online documents for the checkbox input in XHTML. Can anyone
I went through the Book and I've copied code from the section http://book.cakephp.org/view/1460/RSS but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.