run-local.py 438 B

1234567891011121314
  1. from flexmeasures.app import create as create_app
  2. from flexmeasures.utils import config_defaults
  3. """
  4. Run the FlexMeasures application locally.
  5. Best to use in a development setup. A professional web server should be handed the app object to use in a WSGI context.
  6. """
  7. if __name__ == "__main__":
  8. print("Starting the FlexMeasures Platform ...")
  9. create_app().run(debug=config_defaults.DevelopmentConfig.DEBUG, load_dotenv=False)