1234567891011121314151617 |
- #!/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:$APP_PORT --timeout=1000
|