设置登台/开发服务器的最佳/最佳/最佳方式 [英] Best/Better/Optimal way to setup a Staging/Development server

查看:140
本文介绍了设置登台/开发服务器的最佳/最佳/最佳方式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近启动了一项服务,这意味着我不能再直接在该网站上工作,否则我将处于危险之中。



我无法找到制作开发服务器的任何标准或最佳方法。我看到的两件事是



a)使用GIT或SVN托管数据(这并不能完全解决我的问题,我需要能够开发某个地方,最好不是我的家用计算机)



b)Capistrano(对于Rails,PHP是否适用?)



< hr>

我正在查看的当前解决方案是将服务器的完整副本放在 development.domain.com上,这样我就可以进行所有工作。可以简单地将文件复制到主要部分。



这是可行的解决方案吗?什么是最佳解决方案? (单独的服务器,专用工具等)






EDIT
此系统由许多开发人员开发。服务器设置已进行了大量调整,以允许系统的全部功能和安全性。在我自己的计算机上进行开发不是可行的解决方案,也不是在Intranet类型的系统上进行,因为我们的程序员都不在同一位置。



我在寻找

解决方案

三个建议:



1)确保您的源代码处于某种形式的源代码控制中,这是正确的选择(git和svn都是不错的选择)。这应该是优先级#1。



2)使所有偏离标准配置的内容都以某种形式的源代码控制。这意味着您的apache配置,您的php.ini,数据库配置等。然后,当您设置登台服务器和开发服务器时,可以(相对)确保所有服务器上的一切都相同,否则您只是在猜测。 / p>

3)研究某种构建脚本,例如ant, phing ,或者可以用来在任何机器上从头开始可靠构建环境的任何东西。



您还可以做很多其他事情,但是如果您实施这三个步骤,您将可以轻松设置开发/登台服务器。这还将为您带来额外的好处,即确保您所有的开发人员在进行开发时也都具有相似的环境。


I recently launched a service, meaning I can no longer work directly on the site, or I do so at a risk.

I haven't been able to find any "standard" or "best" way to make a development server. The two things I have seen are

a) Using a GIT or SVN to host the data (this doesn't quite solve my problem, I need to be able to develop somewhere, preferably not my home computer)

b) Capistrano (for Rails, is there something for PHP?)


The current solution I'm looking at is putting a complete copy of the server on "development.domain.com", which would then allow me to work on everything, and I can simply copy the files over to the main section.

Is this a workable solution? What's the optimal solution? (Separate server, special tools, etc.)


EDIT This system be developed by a number of developers. The server settings have been tweaked considerably to allow for the full functionality and security of the system. Having the development on my own computer is not a workable solution, nor on an intranet type of system as none of our programmers are in the same location.

I'm looking for an on-a-server solution.

解决方案

Three suggestions:

1) You are on the right track with making sure that your source code is in some form of source control (git and svn are both excellent choices). This should be priority #1.

2) Have EVERYTHING that has deviated from a standard configuration be in some form of source control. This means your apache configs, your php.ini, database configs, etc. Then when you setup your staging and dev servers you can be (relatively) assured that everything is the same across all of your servers, otherwise you are just guessing.

3) Look into some sort of build scripts, either ant, phing, or anything that you can use to reliable build your environment from scratch on any machine.

There are tons of other things you can do, but if you implement these three you'll be well on your way to having the ability to easily setup a dev/staging server. This will also give you the added benefit of ensuring that all of your developers have a similar environment when doing their development as well.

这篇关于设置登台/开发服务器的最佳/最佳/最佳方式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆