riego/prod/: riegocloud-0.2.3 metadata and description

Simple index

author_email Stephan Winter <s.winter@riego.cloud>
description_content_type text/markdown
license MIT
requires_dist
  • ConfigArgParse>=1.7
  • aiohttp[speedups]>=3.11.11
  • aiohttp-jinja2>=1.6
  • aiohttp-session[secure]>=2.12.1
  • aiohttp-debugtoolbar>=0.6.1
  • yoyo-migrations>=9.0.0
  • bcrypt>=4.2.1
  • asyncssh>=2.19.0
  • aiomysql>=0.2.0
  • setuptools>=75.6.0
  • pip>=24.3.1
  • multidict>=6.1.0
  • uvloop>=0.21.0
requires_python >=3.9

Because this project isn't in the mirror_whitelist, no releases from root/pypi are included.

File Tox results History
riegocloud-0.2.3-py3-none-any.whl
Size
223 KB
Type
Python Wheel
Python
3
riegocloud-0.2.3.tar.gz
Size
212 KB
Type
Source

Installation

Debian Pakete

apt install -y python3-virtualenv python3-wheel build-essential rustc python3-dev libssl-dev

apt install -y mariadb memcached

Systemuser

adduser --system --group --home /srv/riego.cloud/service --shell /usr/bin/bash riegocloud

Sudo for restarting nginx / apache

sudo bash -c "cat > /etc/sudoers.d/riegocloud" << 'EOT' riegocloud ALL=(root) NOPASSWD: /usr/sbin/apachectl graceful riegocloud ALL=(root) NOPASSWD: /bin/systemctl reload nginx EOT chmod 440 /etc/sudoers.d/riegocloud

Programm

cd /srv/riego.cloud/service rm -rf .venv sudo -H -i -u riegocloud bash python3 -m virtualenv .venv && source .venv/bin/activate && python3 -m pip install pip --upgrade python3 -m pip config --site set global.index-url "https://devpi.riego.cloud/riego/prod/+simple/" python -m pip config --site set global.timeout 60 pip install --upgrade riegocloud uvloop echo "source .venv/bin/activate" >.profile exit

Create Database

mysql -u root <<"EOT" DROP DATABASE IF EXISTS riegocloud; CREATE DATABASE riegocloud; CREATE USER IF NOT EXISTS 'riegocloud'@'localhost' IDENTIFIED BY 'Eech5jaephaepaes'; GRANT ALL PRIVILEGES ON riegocloud.* TO 'riegocloud'@'localhost'; FLUSH PRIVILEGES; SHOW GRANTS FOR 'riegocloud'@'localhost'; EOT

Install System-Service

sudo bash -c "cat > /etc/systemd/system/riegocloud.service" <<'EOT' [Unit] Description=Riego Cloud Service After=mariadb.service StartLimitIntervalSec=0

[Service] Environment="PYTHONUNBUFFERED=1" Type=simple User=riegocloud WorkingDirectory=/srv/riego.cloud/service ExecStart=/srv/riego.cloud/service/.venv/bin/riegocloud Restart=always RestartSec=1s

[Install] WantedBy=multi-user.target EOT

systemctl daemon-reload

systemctl enable riego

systemctl restart riego

Login as riegocloud:

su -l riegocloud