Rails and Heroku Git Push Issue with Directory



This is my dir tree
-hello app

I tried to deploy the hello rails app to heroku, but it failed as heroku could not recognize the rails app. So I had to move the contents of the rails app to the root folder(in this case rails-tutorial). It then worked.

Now, I want to create a new app. When I try to create it in the root folder it says “Can’t initialize a new Rails application within the directory of another, please change to a non-Rails directory first.”

What do I do? If I push all the contents into a dir, heroku is not able to recognize it as an app.