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
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
9
10def main():
11 setup_app('{{appName}}', 'DevelopmentConfig')
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.