This PR modifies flipper to accept more dynamic releases and updates the URLs used in the template. It now looks for a FLIPPER_RELEASEos.environment or Flask.request.environ variable and uses that to set the urls used in the html. For production runs, it sets the url to [release].sdss.org. For the test flipper web server, it sets the url to [release].sdss.utah.edu.
With this setup, we can continue to use a single uwsgi production.ini file, but utilize different "versions" of the production site through the specific nginx flipper.conf files.
This PR modifies flipper to accept more dynamic releases and updates the URLs used in the template. It now looks for a
FLIPPER_RELEASE
os.environment
orFlask.request.environ
variable and uses that to set the urls used in the html. For production runs, it sets the url to[release].sdss.org
. For the test flipper web server, it sets the url to[release].sdss.utah.edu
.The
FLIPPER_RELEASE
variable is now set in the flippernginx
locations for different DR configs, asuwsgi_param FLIPPER_RELEASE dr15
. This tells the flipper Flask app to usedr15
as the release. See https://github.com/sdss/config/commit/729e4b7e6f683de0600e721a1a90ae995147e812With this setup, we can continue to use a single uwsgi
production.ini
file, but utilize different "versions" of the production site through the specific nginxflipper.conf
files.