Search code examples
gitrepositoryherokustaging

how to create staging environment in heroku and push app


I have a rails project deployed on heroku which has only a production environment.

I've created a staging environment by doing: "heroku create appname --remote staging"

the slug size for on my exsiting application is 4.4MB and the .git repository is 85MB.

when I do git push staging master, it tries to upload all 85MB to heroku instead of just 4.4MB (which actually contains the application files).

is this what should happen? am I creating the staging environment right?

Thanks.


Solution

  • To deploy to Heroku, you need to do a git push. That pushes all the stuff in your repository. That's just what happens.