Skip to content

(Mac and Linux only) How to create a public production‐ready Snazzle instance

redstone edited this page Jul 21, 2024 · 5 revisions

A public, production-ready Snazzle instance is fairly easy to set up on Linux. We will use the Snazzle Production Server, or SPS, which is a version of Snazzle built specifically for this task.

As of July 20th, 2024, these instructions are for Mac and Linux only.

There will be a version of SPS for Windows in the future that may not be as performant, but will still be more than up for the task. (You can run SPS on WSL2 if needed.)

Requirements

  • Python >=3.8
  • A text editor (even Notepad will do)
  • libev (either libev (brew, pacman), libev-dev (apt), or libev-devel (dnf) on your package manager of choice)
  • A C compiler
  • systemd

Installation

  1. Download the source code and extract it - You can do so from this link here. This file is insanely small (132 bytes!!).
  2. Set the IP and port it should serve from in the .env file - Ideally you should forward that port on your router, or use something like Cloudflare Tunnels.
  3. Run python3 app.py - Snazzle's dependency auto-installer should install everything for you.

(Linux only) If you want to install Snazzle as a systemd service, just add the --create-service flag. This will create the service, make it run at boot, and reboot your system.

And you're done! That's literally it.

Clone this wiki locally