32 lines
537 B
TOML
32 lines
537 B
TOML
[phases.setup]
|
|
nixPkgs = [
|
|
"python311",
|
|
"cairo",
|
|
"pango",
|
|
"gdk-pixbuf",
|
|
"glib",
|
|
"harfbuzz",
|
|
"libjpeg",
|
|
"openjpeg",
|
|
"libxcb",
|
|
"bash",
|
|
"gcc"
|
|
]
|
|
|
|
[phases.install]
|
|
cmds = [
|
|
"python -m venv .venv",
|
|
". .venv/bin/activate",
|
|
"pip install --upgrade pip",
|
|
"pip install -r requirements.txt"
|
|
]
|
|
|
|
[phases.build]
|
|
cmds = [
|
|
". .venv/bin/activate",
|
|
"python manage.py collectstatic --noinput"
|
|
]
|
|
|
|
[start]
|
|
cmd = ". .venv/bin/activate && gunicorn config.wsgi:application --bind 0.0.0.0:8000"
|