source: src/mapservice/codegen/templates/__main__.mustache@ cdd6542

debian/bullseye
Last change on this file since cdd6542 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
Line 
1{{#supportPython2}}
2#!/usr/bin/env python
3{{/supportPython2}}
4{{^supportPython2}}
5#!/usr/bin/env python3
6{{/supportPython2}}
7
8from {{packageName}}.server_impl import app, application, mail, celery, setup_app, config_object
9
10def main():
11 setup_app('{{appName}}', config_object)
12 app.run(host=application.config.get("HOST", "localhost"), port=application.config.get("PORT", {{serverPort}}))
13
14if __name__ == '__main__':
15 main()
Note: See TracBrowser for help on using the repository browser.