Work on deployment

This commit is contained in:
2024-03-29 14:58:46 +01:00
parent 3875093a98
commit eb6c45dd92
3 changed files with 9 additions and 6 deletions
+5 -5
View File
@@ -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
+1
View File
@@ -2,3 +2,4 @@ discord
yt_dl
spotify_dl
spotipy
openai
+3 -1
View File
@@ -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