source: src/mapservice/codegen/templates/__main__.mustache@ 0200f6c

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

Celery background process for log parsing is now working

  • Property mode set to 100644
File size: 416 bytes
RevLine 
[3a89adb]1{{#supportPython2}}
2#!/usr/bin/env python
3{{/supportPython2}}
4{{^supportPython2}}
5#!/usr/bin/env python3
6{{/supportPython2}}
7
[a88607b]8from {{packageName}}.server_impl import app, application, mail, celery, setup_app
[3a89adb]9
10def main():
[a88607b]11 setup_app('{{appName}}', 'DevelopmentConfig')
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.