Snazzle Production Server v1
Information
A quick-and-dirty hack I did to create a version of Snazzle that can be used in prod. It's basically just Snazzle bundled with and tweaked to use bjoern as a WSGI server. The file Snazzle-Prod-Server.tar.gz
contains the source code for it. Will not work on Windows. Does not follow SemVer. The version number just increments by one for each release.
bjoern is so fast that any performance issues are probably our fault.
Installation
Once downloading and decompressing the Snazzle-Prod-Posix.tar.gz
file, it's largely the same as normal Snazzle but you need to install an additional library called libev
which has to be done via the terminal using one of the following commands:
sudo apt install libev-dev # Ubuntu, Debian, Raspberry Pi
sudo dnf install libev-devel # Fedora, Red Hat, CentOS
sudo brew install libev # macOS (using Homebrew)
sudo pacman -S libev # Arch
To run the server, you must run python3 app.py
instead of flask run --with-threads
, because flask run
uses Flask's development server, and will not use bjoern.