Skip to content

Commit 4ffd3e0

Browse files
committed
add railway toml for easy deployment
1 parent bb0720b commit 4ffd3e0

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

railway.toml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
[build]
2+
builder = "DOCKERFILE"
3+
dockerfilePath = "./Dockerfile"
4+
5+
[deploy]
6+
startCommand = "python -m swe_af"
7+
healthcheckPath = "/health"
8+
healthcheckTimeout = 120
9+
restartPolicyType = "ON_FAILURE"
10+
restartPolicyMaxRetries = 5

swe_af/app.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
version="1.0.0",
2828
description="Autonomous SWE planning pipeline",
2929
agentfield_server=os.getenv("AGENTFIELD_SERVER", "http://localhost:8080"),
30+
api_key=os.getenv("AGENTFIELD_API_KEY"),
3031
)
3132

3233
app.include_router(router)

0 commit comments

Comments
 (0)