具有版本控制的 WordPress 开发工作流程
我目前正在管理一些自由项目,主要使用 WordPress(客户偏好)。我在本地开发网站,在 Mac 上运行 Apache/PHP/MySQL。我使用 Git 对这些项目进行版本控制。
理想情况下,我希望能够将更改提交到存储库,然后在准备上线时将更改从那里拉到服务器上。这太棒了,让我可以随时拥有网站的两个版本 - 开发版和上线版。为此,我猜测服务器需要安装 Git。但是,我不想购买 VPS。理想情况下,每个客户都应该拥有自己的网络空间,并按月付费(或者他们选择支付的方式)。
所以我的问题是,是否有任何小型网络托管套餐可以提供此类服务?我需要 Git,当然我还需要 SSH 来访问 Git。考虑到大多数时候,我制作的网站每天只能获得几次点击。
另外,有什么办法可以同步MySQL数据库吗?如果我要对网站进行更改,我希望在本地准确地看到它们上线后的显示效果。因此,最好让所有数据同步。
I am currently managing a handful of freelance projects, mostly using WordPress (the clients preference). I develop the websites locally, running Apache/PHP/MySQL on my Mac. I version control these projects with Git.
Ideally, I want to be able to commit changes to a repository and then pull changes from there onto the server when they are ready to go live. This would be great, enabling me to have two versions of a website at any one time - development and live. For this I am guessing the server would need Git installed. However, I don't want to have to buy a VPS. Ideally, each client should have their own web space which they pay for on a monthly basis (or however they choose to pay).
So my question is, are there any small web hosting packages out there that offer this kind of thing? I need Git, and of course I'll need SSH to access Git. Taking into account that most of the time, the sites I make only get a few hits per day.
Also, is there any way to synchronise the MySQL databases here? If I am making changes to a website, I want to see them locally exactly how they will appear when they go live. Therefore it would be good to have all data in sync.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用 http://openshift.com 它们是 PaaS,并且有可用的 PHP 堆栈。如果你检查他们的网站,还有一个指向他们 github 的链接,其中有一些可用的示例。其中之一应该是 WordPress 安装。顺便说一句,Express 版本是免费的,通常对于低流量网站来说已经足够了。
Use http://openshift.com They are a PaaS and have a PHP stack available. If you check their web site there is also a link to their github which has some examples available. One of them should be a Wordpress install. BTW, the Express version is free and usually good enough for low traffic sites.