git clone git@github.com:prague-estate/publisher.git prague-publisher
cd prague-publisher
python3.14 -m venv venv
source venv/bin/activate
pip install -U poetry pip setuptools
poetry config virtualenvs.create false --local
poetry install
ruff check
flake8 publisher/
mypy publisher/
python -m publisher.publisher
Run publisher for channels
python -m publisher.channel_publisher
Run subscription downgrade session
python -m publisher.subs_downgrade
gunicorn publisher.webapp:app -b 127.0.0.1:9002 -w 2
curl -X POST " 127.0.0.1:9002/webhook"
add-apt-repository ppa:deadsnakes/ppa
apt-get update
apt install -y software-properties-common python3.14 python3.14-dev python3.14-venv
apt install -y libpq-dev gcc python3-pip redis supervisor
apt-get upgrade
adduser publisher
vi /etc/logrotate.d/prague-publisher
groupadd supervisor
usermod -a -G supervisor root
usermod -a -G supervisor publisher
vi /etc/supervisor/supervisord.conf # change chown and chmod params
vi /etc/supervisor/conf.d/publisher.conf
service supervisor restart