deploy3
This commit is contained in:
parent
ac3f000214
commit
827080c473
31
nixpacks.toml
Normal file
31
nixpacks.toml
Normal file
@ -0,0 +1,31 @@
|
||||
[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"
|
||||
Loading…
x
Reference in New Issue
Block a user