无需在Heroku上部署即可签入代码 [英] Checking in code without deploying on Heroku

查看:98
本文介绍了无需在Heroku上部署即可签入代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已成功在Heroku上运行一个应用程序,但现在想与其上的合作者合作。有没有办法可以检入(并拉)代码而无需现场部署?现在一个git push部署代码生活网站。

I've been successfully running an app on Heroku, but now would like to work with a collaborator on it. Is there a way with can check in (and pull) code without deploying it live? Right now a git push deploys to code the live site.

推荐答案

git的一个优点是它是分布式和分散。您可以配置多个远程存储库。

One of the advantages of git is that it is distributed and decentralized. You can have multiple remote repositories configured.

我建议您使用github与其他人合作。这使您可以确定实际推送到heroku的更改。

I suggest you use github for collaboration with others. This allows you to determine what changes you actually push to heroku.

设置github存储库并推送项目。然后授予您的协作者访问github存储库的权限。改变你的工作流程,使用github作为主要的存储库,并只向heroku推送那些已准备就绪的更改。

Set up a github repository and push the project. Then grant your collaborators access to the github repository. Change your workflow to use github as the primary repository and only push to heroku those changes that are production ready.

这篇关于无需在Heroku上部署即可签入代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆