Compare commits

..

No commits in common. "13c89cbde21cba74e1642a3ca7c58f5bc98c21ea" and "56c531b64e0acd3ba40f99c57636a0feafcdba5d" have entirely different histories.

5 changed files with 6 additions and 9 deletions

View File

@ -1,4 +1,4 @@
FROM python:3.11-slim FROM python:3.13-slim
RUN apt-get update && apt-get install -y \ RUN apt-get update && apt-get install -y \
nginx \ nginx \
@ -9,7 +9,7 @@ RUN apt-get update && apt-get install -y \
imagemagick \ imagemagick \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
RUN python -m venv --system-site-packages /opt/venv RUN python -m venv /opt/venv
ENV PATH="/opt/venv/bin:$PATH" ENV PATH="/opt/venv/bin:$PATH"
WORKDIR /app WORKDIR /app

View File

@ -1,7 +1,7 @@
# Pyrom # Pyrom
python/flask port of [porom](https://git.poto.cafe/yagich/porom) python/flask port of [porom](https://git.poto.cafe/yagich/porom)
this is now the canonical implementation of porom. it's compatible with the database of porom. this is now the canonical implementation of porom
# License # License
Released under [CNPLv7+](https://thufie.lain.haus/NPL.html). Released under [CNPLv7+](https://thufie.lain.haus/NPL.html).
@ -20,10 +20,8 @@ $ docker compose up
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. 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) ## manual (development)
1. install python >= 3.11, sqlite3, libargon2, and imagemagick & clone repo 1. install python >= 3.13, sqlite3, libargon2, and imagemagick & clone repo
2. create a venv: 2. create a venv:
```bash ```bash

View File

@ -25,7 +25,7 @@ def thread_updates(thread_id):
if not new_post: if not new_post:
return {'status': 'none'} return {'status': 'none'}
url = url_for('threads.thread', slug=thread.slug, after=new_post['id'], _anchor=f"post-{new_post['id']}") url = url_for('threads.thread', slug=thread.slug, after=new_post['id'], _anchor=f'post-{new_post['id']}')
return {'status': 'new_post', 'url': url} return {'status': 'new_post', 'url': url}

View File

@ -3,7 +3,6 @@ events {
} }
http { http {
include /etc/nginx/mime.types;
server { server {
listen 8080; listen 8080;
server_name localhost; server_name localhost;

View File

@ -8,7 +8,7 @@ chmod-socket = 666
plugins = python3 plugins = python3
virtualenv = /opt/venv virtualenv = /opt/venv
pythonpath = /opt/venv/lib/python3.11/site-packages pythonpath = /opt/venv/lib/python3.13/site-packages
uid = www-data uid = www-data
gid = www-data gid = www-data