2011-02-23 53 views
3
 Production   
      ↑    
     Staging   
      ↗↘   
     Development   
     ↗↙ ↖↘   
    Developer1 Developer2 

如何在heroku上创建git工作流程?如何在heroku上创建git工作流程?

+0

你画的东西看起来像一个很好的工作流程,你究竟在问什么? – 2011-02-23 09:02:13

回答

1

这取决于你是否有一个 Git回购Heroku方面,或几个。

有了几个回购,您可以为开发生命周期中的每一步分配一个回购。
但考虑到Git仓库背后的架构,管理您的dynos in relation with one repo(请参阅here for more on Dynos)可能会更容易。

这意味着你可以定义每个发展一个分支步骤(一个dev分支,一个staging分支,一个prod分支)在Heroku上侧(在你的本地回购,因为你需要,你可以有很多的分支)。

+0

使用不同的分支是一个好主意;下面是在Heroku上用Git来做到这一点的方法:http://devcenter.heroku.com/articles/multiple-environments#advanced_linking_local_branches_to_remote_apps – 2011-08-11 06:50:31

+0

链接http://heroku.com/how/dynos已损坏。 – 2011-12-07 06:16:21

+1

@NicolasRaoul:谢谢。链接固定。 – VonC 2011-12-07 06:41:12