이건 Python이 잘못했다다
This commit is contained in:
parent
2d2e546673
commit
ca946990e1
41 changed files with 3081 additions and 964 deletions
34
app/run.sh
34
app/run.sh
|
|
@ -1,33 +1,3 @@
|
|||
#!/bin/bash
|
||||
cd /root/today.isangjeong/app
|
||||
cd /code/app
|
||||
|
||||
# If doesn't have temp folder, create it
|
||||
if [ ! -d "temp" ]; then
|
||||
mkdir temp
|
||||
fi
|
||||
if [ ! -d "temp/auth" ]; then
|
||||
mkdir temp/auth
|
||||
fi
|
||||
echo "Debug: Script started at $(date)" >> ./temp/debug.log
|
||||
echo "Debug: Current directory is $(pwd)" >> ./temp/debug.log
|
||||
echo "Debug: User is $(whoami)" >> ./temp/debug.log
|
||||
echo "Debug: Environment variables:" >> ./temp/debug.log
|
||||
env >> ./temp/debug.log
|
||||
|
||||
|
||||
|
||||
# If doesn't have temp/cookies.json, create it
|
||||
if [ ! -f "./temp/auth/cookies.json" ]; then
|
||||
mkdir temp/auth
|
||||
python3 library/init-auth.py
|
||||
fi
|
||||
|
||||
# Set the log file name with the current date and time
|
||||
log_file="./temp/$(date +%Y%m%d-%H%M%S).log"
|
||||
|
||||
# Run the Python script with or without --today and output to both the console and log file
|
||||
if [[ "$1" == "--today" ]]; then
|
||||
python3 run.py --today | tee "$log_file"
|
||||
else
|
||||
python3 run.py | tee "$log_file"
|
||||
fi
|
||||
bun ./index.ts
|
||||
Loading…
Add table
Add a link
Reference in a new issue