모든 버그 해결

This commit is contained in:
imnyang 2024-11-06 22:57:35 +09:00
commit e19aa64c8f
14 changed files with 96 additions and 31 deletions

View file

@ -1,22 +1,16 @@
cd /root/isangjeong.today
cd /code/isangjeong.today
#rm -rf 20*.png
#rm -rf /etc/localtime
#ln -sf /usr/share/zoneinfo/Asia/Seoul /etc/localtime
# If doesn't have .venv folder, create it
if [ ! -d "venv" ]; then
python3 -m venv venv
.venv/bin/pip install -r requirements.txt
fi
# If doesn't have temp folder, create it
if [ ! -d "temp" ]; then
mkdir temp
fi
# If doesn't have temp/cookies.json, create it
if [ ! -f "temp/cookies.json" ]; then
.venv/bin/python3 library/init-auth.py
python3 library/init-auth.py
fi
.venv/bin/python3 run.py > temp/$(date +%Y%m%d-%H%M%S).log 2>&1
python3 run.py > temp/$(date +%Y%m%d-%H%M%S).log 2>&1