pyrous forum
Go to file
2025-07-02 20:47:10 +03:00
app 3.11 2025-07-02 20:46:48 +03:00
config add env differentiation 2025-06-29 18:50:41 +03:00
data/static style fixes 2025-07-02 16:22:52 +03:00
sass style fixes 2025-07-02 16:22:52 +03:00
.dockerignore create default avatar, admin, and deleted user on first run 2025-06-29 19:34:02 +03:00
.env add env differentiation 2025-06-29 18:50:41 +03:00
.gitignore create default avatar, admin, and deleted user on first run 2025-06-29 19:34:02 +03:00
docker-compose.yml add env differentiation 2025-06-29 18:50:41 +03:00
Dockerfile make it work in docker again and fix some ngx config issues 2025-07-02 20:47:10 +03:00
LICENSE.md license under CNPLv7+ 2025-06-29 20:31:06 +03:00
nginx.conf make it work in docker again and fix some ngx config issues 2025-07-02 20:47:10 +03:00
README.md make it work in docker again and fix some ngx config issues 2025-07-02 20:47:10 +03:00
requirements.txt add readme & thirdparty and freeze pip deps 2025-07-02 12:37:55 +03:00
THIRDPARTY.md add readme & thirdparty and freeze pip deps 2025-07-02 12:37:55 +03:00
uwsgi.ini make it work in docker again and fix some ngx config issues 2025-07-02 20:47:10 +03:00

Pyrom

python/flask port of porom

this is now the canonical implementation of porom. it's compatible with the database of porom.

License

Released under CNPLv7+. Please read the full terms for proper wording.

installing & first time setup

docker (production)

create config/secrets.prod.env according to config/secrets.prod.env.example

$ docker compose up
  • opens port 8080
  • exposes data/db and data/static for data backup and persistence

make sure to run it in an interactive session the first time, because it will spit out the password to the auto-created admin account.

alternatively, if you already had porom running before, put the db file (db.prod.sqlite) in data/db and it will Just Work.

manual (development)

  1. install python >= 3.11, sqlite3, libargon2, and imagemagick & clone repo
  2. create a venv:
$ python -m venv .venv
$ source .venv/bin/activate
  1. install requirements:
$ pip install -r requirements.txt
  1. run dev server:
$ python -m app.run

the server will run on localhost:8080. when run for the first time, it will create an admin account and print its credentials to the terminal, so make sure to run this in an interactive session.

press Ctrl+C to stop the server.

to deactivate the venv:

$ deactivate

when you want to run the server again, make sure to activate the venv first:

$ source .venv/bin/activate
$ python -m app.run

icons

the icons in the data/static/misc/ folder are by Gabriele Malaspina