fix: remove url variables; docs: updated to current

This commit is contained in:
ahoemann 2025-03-21 08:36:35 +01:00
parent d74916f2c7
commit 40306538ba
4 changed files with 22 additions and 14 deletions

View file

@ -3,28 +3,41 @@
## Setting up the environment
1. Create a virtual environment:
```sh
python3 -m venv .venv
```
2. Activate the virtual environment:
```sh
. .venv/bin/activate
```
3. Install dependencies:
```sh
pip install requirements.txt
```
4. Set the environment variables:
```sh
export GIT_URL=http://git.adrianux.net
export WEBSITE_URL=http://adrianux.net
export DEBUGMODE=False
```
Or source the .env file:
```sh
cp .env.example .env # change the variables to suit your environment as needed
```
```sh
. .env
```
5. Run the app:
```sh
waitress-serve --listen=0.0.0.0:8080 app:app
```
@ -34,10 +47,9 @@ waitress-serve --listen=0.0.0.0:8080 app:app
## Building the container
```sh
docker build -t adrianux:latest - < latest.dockerfile
docker build -t adrianux:latest .
```
## Running the container
```sh