将CodeIgniter(或任何PHP项目)部署到实际站点?

将CodeIgniter项目(或任何PHP项目)从本地计算机部署到现场的理想方式是什么? 现场? 我一直在使用subversion来检查和更新实时站点的代码已有一段时间了。 但也有其他人说这种做法并不好,因为您不需要在实时网站中使用svn元数据。 我还阅读了几篇文章,他们使用Capitrano来部署PHP项目。 你在PHP项目部署中的做法是什么?</ p>
</ div>

展开原文

原文

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?

2个回答



我使用Phing满足我的所有建筑需求。</ p>

我创建了几个任务,比如 prod,staging,debug。 当我想将所有数据推送到我的生产服务器时,我只使用 phing prod </ em>。 这将检查我的仓库中的所有代码,进行一些配置更改,通过缩小器等运行所有静态文件,如css和javascript等。</ p>

有关Phing的更多信息:</ p>

Phing.info </ p>

< a href =“http://www.slideshare.net/hozn/phing-building-with-php”rel =“nofollow noreferrer”title =“Great slides”> http://www.slideshare.net/hozn/phing -building-with-php </ p>
</ div>

展开原文

原文

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



我问了一个类似的问题,很多人似乎都喜欢Phing:</ p>

您首选的php部署策略是什么? </ p>

我看了一眼,配置文件非常令人生畏。 我很想听到关于这个主题的更多信息。</ p>
</ div>

展开原文

原文

I asked a similar question and a lot of people seemed to like Phing:

What is your preferred php deployment strategy?

I took a look at it and the config files were pretty intimidating. I'm interested to hear more on this subject.

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问
相关内容推荐