add wsgi/gunicorn

This commit is contained in:
2021-05-18 19:53:31 +02:00
parent d548ce044a
commit ea44d38a0d
2 changed files with 6 additions and 1 deletions

View File

@@ -10,7 +10,8 @@ def index():
@app.route('/', methods=['POST'])
def index_post():
input_message = request.form['message'] + '\n'
input_message = request.form['message']
if request.method == 'POST':
with open(app.config.get("MESSAGE_FILE"), 'w') as f:
f.write(str(input_message))

4
wsgi.py Normal file
View File

@@ -0,0 +1,4 @@
from autoreply_editor import app
if __name__ == "__main__":
app.run()