开发者

how to create staging environment in heroku and push app

开发者 https://www.devze.com 2023-01-25 01:25 出处:网络
I have a rails project deployed on heroku which has only a production environment. I\'ve created a staging environment by doing:

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 :-)

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号