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 instea开发者_开发技巧d of just 4.4MB (which actually contains the application files).
is this what should happen? am I creating the staging environment right?
Thanks.
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 :-)
精彩评论