feat: replace gunicorn entrypoint with python -m snek.app and add MIT license, pyproject.toml metadata, form/model refactor, and new view structure

Replace the Dockerfile CMD from gunicorn to `python -m snek.app`, add MIT LICENSE.txt, populate pyproject.toml with project metadata and dependencies, refactor forms into `snek.form.login` and `snek.form.register` with new HTMLElement system, delete old `snek/forms.py`, add `snek/model/user.py` with User model, restructure `snek/app.py` imports and router setup to use new view modules, rename `styles.css` to `base.css` and strip comments, add `fancy-button.js` custom element, and update `compose.yml` entrypoint accordingly.
This commit is contained in:
2025-01-24 02:28:43 +00:00
parent 454d51a678
commit 8236b568d5
42 changed files with 1050 additions and 210 deletions
+2 -1
View File
@@ -37,4 +37,5 @@ RUN pip install --upgrade pip
RUN pip install -e .
EXPOSE 8081
CMD ["gunicorn", "-w", "10", "-k", "aiohttp.worker.GunicornWebWorker", "snek.gunicorn:app","--bind","0.0.0.0:8081"]
python -m snek.app
#CMD ["gunicorn", "-w", "10", "-k", "aiohttp.worker.GunicornWebWorker", "snek.gunicorn:app","--bind","0.0.0.0:8081"]