Vierkantor / PyServ

The Python code that hosts vierkantor.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PyServ

A small web server that I use to host my personal website.

Installation

  • Make a user py.
  • Give them access to a PostgreSQL database (e.g. py_databrowse).
  • Give them rights to access and execute, but not write(!) to this directory and its subdirectories.
  • Copy pyserv/config.py.example to pyserv/config.py and tweak until it's correct.
  • Install a virtual environment in the dir venv: python3 -m virtualenv venv.
  • Activate the environment: source venv/bin/activate.
  • Install all required packages: pip3 install -r requirements.txt

Running

To run, you can simply execute ./run.sh. This will make sure the right user and virtual environments are selected.

About

The Python code that hosts vierkantor.com

License:GNU General Public License v3.0


Languages

Language:Python 82.1%Language:Smarty 11.3%Language:HTML 5.0%Language:CSS 1.0%Language:Shell 0.5%