ch2rss
ch2rss copied to clipboard
Create RSS feed from a Telegram channel
Deploy
I assume you have Ubuntu 20.04 server with Python 3.12, supervisor and memcached (see server
setup speedrun below). In case of another Python version, change deploy.yml accordingly.
You will also need Ansible installed on your workstation.
-
Save your server name into
hostsfile in a current directory:echo MY_SERVER > hosts -
Deploy the code:
./deploy.yml -
Make sure it works as expected:
curl http://127.0.0.1:5001/telegram
Server setup speedrun
sudo add-apt-repository -y -u ppa:deadsnakes/ppa
sudo apt-get -y install memcached libmemcached-dev supervisor python3.12 python3.12-dev redis-server
Check for security vulnerabilities and linter errors:
pip install -r dev-requirements.txt
make