I updated the comments on issue
#195 with the instructions and Conda configuration file that I used to successfully install Tethys with Conda on Ubuntu 16.04 server (if anyone else has a chance to test it out I would appreciate any other validation). I am now trying to get the Conda environment to work with a production server, but it looks like mod_wsgi is compiled against the system Python and so it will not work with the Conda Python unless we compile it specifically with that Python (not something I'm anxious to do). It was quite easy however to get uWSGI to work. I've found
instructions for configuring Django to work with uWSGI and Nginx so that should be fairly straight forward. I also found this
blog post describing how to set up uWSGI with Apache for a Flask application, so I think we could probably figure out how to adapt that for Django fairly easily. My question is, should the official documentation describe how to set up production installation with Apache or Nginx (or both)?
@zyli2004 You have been using Nginx for the HydroShare server haven't you? What are the reasons that you chose Nginx? Would you recommend that in general?
@swainn Apache + mod_wsgi is Django's official recommendation. Does switching to uWSGI cause any angst?
It will likely be a month or so before I can dedicate more time to testing out a production environment with Conda. If anyone else wants to test the development instructions I posted on issue
#195 or even go on to trying to figure out a production setup in the meantime that would be great. @jacobfull, I recall you mentioning that you have an app that needs numpy or gdal. If you want to install this Conda environment version of Tethys then installing those will be a breeze.