Ignore:
Timestamp:
Apr 6, 2020, 4:37:59 PM (7 years ago)
Author:
Joachim Langenbach <joachim.langenbach@…>
Branches:
debian/bullseye, master
Children:
78abfaa
Parents:
02b893b
Message:

Configure is now loaded follwoing the hierarchy:

  1. FLASK_ENV
  2. /etc/gnuboat/mapservice.conf
  3. Default = Production
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mapservice/codegen/templates/__main__.mustache

    r02b893b r096625e  
    66{{/supportPython2}}
    77
    8 from {{packageName}}.server_impl import app, application, mail, celery, setup_app
     8from {{packageName}}.server_impl import app, application, mail, celery, setup_app, config_object
    99
    1010def main():
    11         setup_app('{{appName}}', 'DevelopmentConfig')
     11        setup_app('{{appName}}', config_object)
    1212        app.run(host=application.config.get("HOST", "localhost"), port=application.config.get("PORT", {{serverPort}}))
    1313
Note: See TracChangeset for help on using the changeset viewer.