开发服务器和放大器;生产服务器 [英] Development server & production server

查看:112
本文介绍了开发服务器和放大器;生产服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么是处理同一服务器上的生产和开发网站的正确方法?直到它的用于生产发展code不宜使用。
我使用Apache和Django和VPS主机。
我应该怎么配置? Apache-因此它有很大的发展的东西,Django-一个特殊的preFIX并有一定的网址URL配置重整,或者只是得到另一个VPS发展?

What is the right way to handle a production and development website on the same server? the development code shouldn't be available until it's used for production. I'm using Apache and Django and VPS hosting. What should I configure? Apache- so it will have a special prefix for development stuff, Django- and have some URL mangling in the urlconf, or just get another VPS for development?

推荐答案

找一台旧电脑,并把它贴在你的地下室。你真的不需要吨马力的开发机和放大器;应该是能够做到这一点的一对夫妇几百美元。
有生产机器上开发的问题是,你可能崩溃的进程[阿帕奇?]与一些不太调试尚未'code和影响Live服务,即使你已经配置了单独的子域或虚拟主机。

Find an old computer and stick it in your basement. you really don't need tons of horsepower for a dev machine & should be able to do it for a couple hundred bucks. The problem with developing on a production machine is that you could crash processes [apache?] with some 'not quite debugged yet' code and affect live services, even if you have configured separate subdomains or virtual hosts.

永远永远永远活发展。

-Sean

PS>另一个VPS是一个可行的解决方案,如果备用硬件不可用。但是你可以有可用性问题。

PS> another VPS is a workable solution if 'spare hardware' is not available. However you could have availability issues.

这篇关于开发服务器和放大器;生产服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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