]> git.gir.st - subscriptionfeed.git/blob - INSTALL
initial commit
[subscriptionfeed.git] / INSTALL
1 1. install these files to a convenient location, e.g. /opt/yt, and change into the directory
2 git clone ... /opt/yt
3 cd /opt/yt
4 2. create sqlite database and put filename in config.ini
5 sqlite3 subscriptions.sqlite < config/setup.sql
6 3. install virtual environment
7 python3 -m venv venv
8 . venv/bin/activate
9 pip3 install -r config/requirements.txt
10 deactivate
11 4. configure everything:
12 config.ini
13 gunicorn-frontend-config.py -> https://docs.gunicorn.org/en/stable/settings.html
14 gunicorn-webhooks-config.py
15 startup.sh
16 5. for now, edit pull-subs and update-subs to point to your venv
17 6. manually trigger cronjobs
18 ./app/refresh-cipher.pl
19 ./app/pull-subscriptions.py
20 ./app/update-subscriptions.py
21 7. start the web servers (it is recommended to create init/systemd files)
22 ./config/startup.sh
23 8. install cronjobs (once per day, time doesn't matter)
24 YT_DIR=/opt/yt
25 YT_CONFIG=/opt/yt/config/config.ini
26 19 21 * * * $YT_DIR/pull-subscriptions.py
27 03 13 * * * $YT_DIR/update-subscriptions.py
28 52 02 * * * $YT_DIR/refresh-cipher.pl
Imprint / Impressum