mirror of
https://github.com/alantang1977/JunTV.git
synced 2024-12-04 20:23:10 +02:00
17 lines
No EOL
345 B
Python
17 lines
No EOL
345 B
Python
#!/bin/bash
|
|
|
|
for file in /iptv-api-config/*; do
|
|
filename=$(basename "$file")
|
|
target_file="$APP_WORKDIR/config/$filename"
|
|
if [ ! -e "$target_file" ]; then
|
|
cp -r "$file" "$target_file"
|
|
fi
|
|
done
|
|
|
|
. /.venv/bin/activate
|
|
|
|
service cron start &
|
|
|
|
python $APP_WORKDIR/main.py &
|
|
|
|
python -m gunicorn service.app:app -b 0.0.0.0:8000 --timeout=1000 |