From eb6c45dd926389d7d4b97108073637488e110cae Mon Sep 17 00:00:00 2001 From: Migatu Date: Fri, 29 Mar 2024 14:58:46 +0100 Subject: [PATCH] Work on deployment --- deploy.sh | 10 +++++----- file_webservice/requirements.txt | 1 + start.sh | 4 +++- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/deploy.sh b/deploy.sh index 63aec39..36579bb 100755 --- a/deploy.sh +++ b/deploy.sh @@ -1,9 +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/ +cp ./bot.py ../Conjurer/ +cp ./settings.json ../Conjurer/ +cp ./system_gpt_settings.json ../Conjurer/ +cp ./start.sh ../Conjurer +cp ./requirements.txt ../Conjurer/ sudo systemctl restart conjurer.service - diff --git a/file_webservice/requirements.txt b/file_webservice/requirements.txt index 2f4e972..b673960 100644 --- a/file_webservice/requirements.txt +++ b/file_webservice/requirements.txt @@ -2,3 +2,4 @@ discord yt_dl spotify_dl spotipy +openai \ No newline at end of file diff --git a/start.sh b/start.sh index 2f1891c..484b965 100755 --- a/start.sh +++ b/start.sh @@ -1,3 +1,5 @@ #!/bin/bash python3 -m venv /home/pi/Conjurer/env -python3 /home/pi/Conjurer/bot.py +source .venv/bin/activate +./env/python3 -m pip install -r requirements.txt +./env/python3 /home/pi/Conjurer/bot.py