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