How does one deploy a django application on OS X Server?

后端 未结 3 2018
北海茫月
北海茫月 2021-02-06 11:49

How would one deploy a Django application on OS X Server 2.0 without using homebrew or a different flavor of python than the one shipped with OS X 10.8.1? I\'m using the cocoa b

3条回答
  •  暖寄归人
    2021-02-06 12:27

    Two things:

    1. If you want to use the WSGIScriptAlias directive you need to have the mod_wsgi apache module. I don't have OS X server but as far as I can see the module does not exists in the /usr/libexec/apache2 folder on mountain lion standard. You gonna have to download it from here. Don't know if the command line tools are included in the OS X server. I do need to install X code to get them on the standard version. There seems to be some instruction on how to install it on macos x

    2. Have a look at Homebrew. This is a really great way to add extra software to the mac. In a twist you could install the latest python, nginx and uwsgi. Nginx and uwsgi is a great way to deploy django apps. I find it more flexible and efficient than mod_wsgi (this second point is highly subjective).

    Good luck

提交回复
热议问题