Open simonw opened 1 month ago
It would be cool if the otterwiki PyPI package could be run something like this:
pip install otterwiki
otterwiki \
--repository app-data/repository \
--db sqlite:///${PWD}/app-data/db.sqlite \
--secret-key secret1 \
--port 8080
That would make it even easier for people to try it out.
Nice. I assume your first snippet assumes pip install uv
or equivalent?
Yes, install uv
using your method of choice: https://docs.astral.sh/uv/getting-started/installation/
Hey @simonw, I like to idea of running An Otter Wiki via a shell command. At least for testing in a non-production environment this would be very useful! With using not just flask but running a wsgi server (for example uv as you suggested) even in production environments.
I'll take a look at how this can be implemented.
The https://otterwiki.com/Installation instructions currently lean towards "production" installations - Docker, Kubernetes, uwsgi.
I wanted to try it out on my laptop with the least possible steps - it turns out this worked for me:
This
uv run
command automatically creates a virtual environment, installs thepyproject.toml
dependencies, installsgunicorn
as well (--with gunicorn
) and starts that running the server.