Add nixpacks config for Railway
This commit is contained in:
8
api/nixpacks.toml
Normal file
8
api/nixpacks.toml
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
[phases.setup]
|
||||||
|
nixPkgs = ["python311"]
|
||||||
|
|
||||||
|
[phases.install]
|
||||||
|
cmds = ["pip install -e ."]
|
||||||
|
|
||||||
|
[start]
|
||||||
|
cmd = "uvicorn main:app --host 0.0.0.0 --port ${PORT:-8000}"
|
||||||
Reference in New Issue
Block a user