开发服务器&生产服务器
在同一台服务器上处理生产和开发网站的正确方法是什么?开发代码在用于生产之前不应该可用。 我正在使用 Apache、Django 和 VPS 托管。 我应该配置什么? Apache- 所以它将有一个用于开发内容的特殊前缀,Django- 并在 urlconf 中进行一些 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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
找一台旧电脑,把它放在你的地下室里。对于开发机器和设备来说,您确实不需要大量的马力。几百块钱应该就能搞定。
在生产机器上进行开发的问题是,即使您配置了单独的子域或虚拟主机,您也可能会因某些“尚未完全调试”的代码而导致进程 [apache?] 崩溃并影响实时服务。
永远永远永远不开发住。
-肖恩
PS>如果“备用硬件”不可用,另一个 VPS 是一个可行的解决方案。但是,您可能会遇到可用性问题。
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.
never never never develop live.
-sean
PS> another VPS is a workable solution if 'spare hardware' is not available. However you could have availability issues.