Skip to content

Latest commit

 

History

History
27 lines (16 loc) · 774 Bytes

README.md

File metadata and controls

27 lines (16 loc) · 774 Bytes

Deploy

I assume you have Ubuntu 22.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.

  1. Save your server name into hosts file in a current directory:

     echo MY_SERVER > hosts
    
  2. Deploy the code:

     ./deploy.yml
    
  3. 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
python3.12 -m pip install -U uv

Check for security vulnerabilities and linter errors:

make safety