简体   繁体   English

托管开发服务器+ Git + Bitbucket工作流程

[英]Hosted Development Server + Git + Bitbucket Workflow

I have just taken over the management of a business-critical WordPress site. 我刚刚接管了关键业务WordPress站点的管理。

Currently there isn't a development server or any source control. 目前没有开发服务器或任何源代码控制。 I would therefore like to get this setup and was just after a bit of advice on the best workflow. 因此,我想得到这个设置,并且只是在对最佳工作流程提出一些建议之后。

Development will be done on one machine initially, but the development server must be hosted so geographically dispersed stakeholders can view the site and sign-off changes before it is deployed to the production server. 最初将在一台计算机上进行开发,但必须托管开发服务器,以便地理位置分散的利益相关者可以在将更改部署到生产服务器之前查看该站点并签署更改。

I have used Subversion previously, but I would like to make the jump to Git and was thinking about using a private Bitbucket repository. 我之前使用过Subversion,但是我想跳转到Git并考虑使用私有Bitbucket存储库。

My questions are: 我的问题是:

  1. Does this sound like a sensible solution? 这听起来像是一个明智的解决方案吗?
  2. What is the most efficient/robust method of getting the code from the local machine to the production server (via the development server) while maintaining version control? 在保持版本控制的同时,从本地机器到生产服务器(通过开发服务器)获取代码的最有效/最强大的方法是什么?

Many thanks! 非常感谢!

Yes you can do the development initially on your local machine, commit the changes, push them to the bitbucket with Development branch. 是的,您最初可以在本地计算机上进行开发,提交更改,将它们推送到使用Development分支的bitbucket。 You can have read only access to your stake holders in order to sign off the changes from Development in the remote to Production in the Remote branch. 您可以对您的利益相关者进行只读访问,以便在远程分支中签署从远程开发到生产的更改。

Since you used SVN before and trying to migrate to GIT. 由于您之前使用过SVN并尝试迁移到GIT。 You can use the git svn command to migrate from SVN to GIT. 您可以使用git svn命令从SVN迁移到GIT。

Or you can use the tool SubGIT tool for a stress free migration from SVN to GIT. 或者您可以使用工具SubGIT工具实现从SVN到GIT的无压力迁移。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM