Development server & production server

本秂侑毒 提交于 2020-01-06 13:10:19

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/6788490/development-server-production-server

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!