source: src/mapservice/codegen/templates/__main__.mustache@ 096625e

debian/bullseye
Last change on this file since 096625e was 096625e, checked in by Joachim Langenbach <joachim.langenbach@…>, 7 years ago

Configure is now loaded follwoing the hierarchy:

  1. FLASK_ENV
  2. /etc/gnuboat/mapservice.conf
  3. Default = Production
  • Property mode set to 100644
File size: 425 bytes
RevLine 
[3a89adb]1{{#supportPython2}}
2#!/usr/bin/env python
3{{/supportPython2}}
4{{^supportPython2}}
5#!/usr/bin/env python3
6{{/supportPython2}}
7
[096625e]8from {{packageName}}.server_impl import app, application, mail, celery, setup_app, config_object
[3a89adb]9
10def main():
[096625e]11 setup_app('{{appName}}', config_object)
[a88607b]12 app.run(host=application.config.get("HOST", "localhost"), port=application.config.get("PORT", {{serverPort}}))
[3a89adb]13
14if __name__ == '__main__':
15 main()
Note: See TracBrowser for help on using the repository browser.