Skip to content

Latest commit

 

History

History
58 lines (48 loc) · 2.13 KB

README.md

File metadata and controls

58 lines (48 loc) · 2.13 KB

Webseite des AN

Deploy Check code Check emoji Code coverage Code style: black Imports: isort

How to develop

You need:

  • python3.10
  • git
  • packages from requirements.txt (pip install -r requirements.txt)
  • packages from requirements-dev.txt (pip install -r requirements-dev.txt)

How to check

  • ./check.sh

How to format

  • python -m black an_website tests

How to run

  • python -X dev -m an_website (-X dev is for debugging)

How to run (production)

Linux (tested with arch):

You need:

  • python3.10
  • packages from requirements.txt
  • supervisord
  • redis
  • redis-cell (for ratelimits)
  • uwufetch
  • git

How

  • clone this repo in the home directory of a user
  • (if necessary) add the following at the end of /etc/supervisord.conf
  [include]
  files = /etc/supervisor.d/*.ini
  • (if necessary) create /etc/supervisor.d/
  • run restart.sh as the user of the home directory

Windows

Why?

FreeBSD

should work similar to linux /etc/supervisord.conf -> /usr/local/etc/supervisord.conf /etc/supervisor.d/*.ini -> /usr/local/etc/supervisor.d/*.ini /etc/supervisor.d/ -> /usr/local/etc/supervisor.d/ restart.sh: /etc/supervisor.d/$SERVICE_FILE_NAME -> /usr/local/etc/supervisor.d/$SERVICE_FILE_NAME

MacOS

Why? (same as FreeBSD, probably)