From 00172920a97ea6e36e7f9c7ff6074ec24e61f01c Mon Sep 17 00:00:00 2001 From: Migatu Date: Fri, 29 Mar 2024 14:20:27 +0100 Subject: [PATCH] Waitress Deploy.shgit --- deploy.sh | 9 +++++++++ file_webservice/conjurer_musician.py | 5 ++++- 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100755 deploy.sh diff --git a/deploy.sh b/deploy.sh new file mode 100755 index 0000000..63aec39 --- /dev/null +++ b/deploy.sh @@ -0,0 +1,9 @@ +#!/bin/bash +cd ./conjurer/ +git pull +cd .. +cp ./conjurer/bot.py ./Conjurer/ +cp ./conjurer/settings.json ./Conjurer/ +cp ./conjurer/system_gpt_settings.json ./Conjurer/ +sudo systemctl restart conjurer.service + diff --git a/file_webservice/conjurer_musician.py b/file_webservice/conjurer_musician.py index 058af66..1815981 100644 --- a/file_webservice/conjurer_musician.py +++ b/file_webservice/conjurer_musician.py @@ -59,7 +59,10 @@ def update_music_list(): if __name__ == "__main__": - app.run(debug=True, host="0.0.0.0") + + #app.run(debug=True, host="0.0.0.0") + from waitress import serve + serve(app, host="0.0.0.0", port=5000) # TODO: Reskan co 24h