diff --git a/Waterspout/local_settings_template.py b/Waterspout/local_settings_template.py index 0ab57b6..612c156 100644 --- a/Waterspout/local_settings_template.py +++ b/Waterspout/local_settings_template.py @@ -30,7 +30,10 @@ CSRF_COOKIE_DOMAIN = "openag.ucmerced.edu" CSRF_TRUSTED_ORIGINS = ["https://openag.ucmerced.edu", "https://openag-dev.ucmerced.edu", "https://dap.ucmerced.edu"] -# You'll want to leave the SERVE_ADDRESS alone in most cases, but ALLOWED_HOSTS is a bit misleading - it's +# You'll want to leave the SERVE_ADDRESS alone in most cases, except when you know that you need to change the port. If you +# change the port, make sure to adjust any reverse proxies/forwarders (ie, nginx or IIS) that access this application via +# WSGI or FastCGI. +# ALLOWED_HOSTS is a bit misleading - it's # *really* referring to the allowed host*names* that someone can use to connect to this application. So make sure to # expand the list with any IPs, domains, etc, that may be used to access the application in a browser SERVE_ADDRESS = "*:8010" diff --git a/waterspout_api/models.py b/waterspout_api/models.py index bdfa52f..a853ad5 100644 --- a/waterspout_api/models.py +++ b/waterspout_api/models.py @@ -953,6 +953,7 @@ def run(self, csv_output=None, worst_case_csv_output=None): log.info("Model run complete") except: self.ready = False # if we hit an exception, mark it as not ready to run - someone will need to make a fix before it can be run - this ensures we don't run into infinite loops trying to run the same items over and over + log.error(traceback.format_exc()) finally: # make sure to mark it as not running regardless of its status or if it crashes self.running = False self.save()