sdss / flipper

SDSS Splashpage for websites
https://dr17.sdss.org
BSD 3-Clause "New" or "Revised" License
1 stars 0 forks source link

Adds flexible releases into Flipper #1

Closed havok2063 closed 4 years ago

havok2063 commented 5 years ago

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 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.

The FLIPPER_RELEASE variable is now set in the flipper nginx locations for different DR configs, as uwsgi_param FLIPPER_RELEASE dr15. This tells the flipper Flask app to use dr15 as the release. See https://github.com/sdss/config/commit/729e4b7e6f683de0600e721a1a90ae995147e812

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.

joelbrownstein commented 5 years ago

This looks good!