how to create staging environment in heroku and push app
To deploy to Heroku, you need to do a git push
. That pushes all the stuff in your repository. That's just what happens.
Follow the first few chapters in this book. http://railstutorial.org/ In fact, if you haven't already then read the whole thing :-)