summaryrefslogtreecommitdiff
path: root/service/app/pixelated_user_agent.py
diff options
context:
space:
mode:
Diffstat (limited to 'service/app/pixelated_user_agent.py')
-rw-r--r--service/app/pixelated_user_agent.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/service/app/pixelated_user_agent.py b/service/app/pixelated_user_agent.py
index d13a7fdc..fb71a6f5 100644
--- a/service/app/pixelated_user_agent.py
+++ b/service/app/pixelated_user_agent.py
@@ -112,10 +112,13 @@ def draft_reply_for(mail_id):
def index():
return app.send_static_file('index.html')
-if __name__ == '__main__':
+def setup():
app.config.from_envvar('PIXELATED_UA_CFG')
account = app.config['ACCOUNT']
mail_service = MailService()
converter = MailConverter(mail_service)
app.run(host=app.config['HOST'], debug=app.config['DEBUG'], port=app.config['PORT'])
+
+if __name__ == '__main__':
+ setup()