本文介绍了将CodeIgniter(或任何PHP项目)部署到活动网站?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

将本地机器上的CodeIgniter项目(或任何PHP项目)部署到活动网站的理想方式是什么?我一直在使用subversion检查和更新代码从活的网站很多时间了。但有些人说这种做法不好,因为你不需要在现场的svn元数据。我也读了几个文章,他们使用Capitrano部署PHP项目。

解决方案

我使用Phing来满足我所有的建筑需求。



我已经创建了几个任务,如prod,staging,debug。当我想把所有的数据到我的生产服务器,我只是使用 phing prod 。这将从我的repo检出所有代码,做一些配置更改,通过minifier等运行所有静态文件像css和javascript。



更多关于Phing的信息: p>




What's the ideal way of deploying CodeIgniter projects (or any PHP projects for that matter) from your local machines to the live site? I've been using subversion for checking out and updating the code from live sites for quite some time now. But there are others who say that this practice is not good since you do not need the svn metadata in the live site. I've also read a couple of articles where they use Capitrano to deploy PHP projects. What's your practice in PHP project deployment?

解决方案

I use Phing for all my building needs.

I've created several tasks like, prod, staging, debug. When i want to push all data to my production server, i just use phing prod. This will checkout all code from my repo, do some config changes, run all static files like css and javascript through a minifier etc.

More info on Phing here:

Phing.info

http://www.slideshare.net/hozn/phing-building-with-php

这篇关于将CodeIgniter(或任何PHP项目)部署到活动网站?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

11-02 06:28