deployment automation for staging

This commit is contained in:
Tobias Brunner 2025-03-20 12:09:14 +01:00
parent f773cf169b
commit dafd73b7d5
No known key found for this signature in database
11 changed files with 187 additions and 5 deletions

View file

@ -18,7 +18,7 @@ Paths:
* `docs/modules/ROOT/nav.adoc`: Site navigation (new pages need to be added there)
Writing documentation is best done by running `make docs-preview` and connecting to the site at http://localhost:2020/.
The browser addon [LiveReload - Web extension](https://addons.mozilla.org/en-US/firefox/addon/livereload-web-extension/) will help while editing with automated page reload in the browser.
The browser add-on [LiveReload - Web extension](https://addons.mozilla.org/en-US/firefox/addon/livereload-web-extension/) will help while editing with automated page reload in the browser.
## Development setup
@ -39,7 +39,7 @@ This will start the development server on http://localhost:8000.
TODO
### Code style and linting
## Code style and linting
Servala uses several linters / formatters to keep the project style consistent for you.
Run them like this:
@ -54,7 +54,7 @@ uv run flake8 src/ # Python linter
The repository features a [pre-commit](https://pre-commit.com/) configuration which helps to properly format the source code before committing.
It's recommended to install and use it.
### Docker
## Docker
The project provides a Dockerfile which builds a production-ready container image.
It uses [Caddy](https://caddyserver.com/) to serve static files and connect to [Gunicorn](https://gunicorn.org/), the Python WSGI application server.
@ -73,6 +73,10 @@ docker run --rm -ti -p 8080:8080 --name=servala-portal --rm --env-file .env loca
TODO: Persistence
### Testing
## Deployment
TODO
## Testing
TODO