Eddie commited on
Commit
64a3cdc
·
1 Parent(s): 28df4fb

Add Railway deployment config

Browse files
Files changed (2) hide show
  1. nixpacks.toml +11 -0
  2. railway.json +13 -0
nixpacks.toml ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [phases.setup]
2
+ nixPkgs = ["python311"]
3
+
4
+ [phases.install]
5
+ cmds = ["pip install -r requirements.txt"]
6
+
7
+ [phases.build]
8
+ cmds = ["echo 'Build completed'"]
9
+
10
+ [start]
11
+ cmd = "python quantum_terminal_demo.py"
railway.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "$schema": "https://railway.app/railway.schema.json",
3
+ "build": {
4
+ "builder": "NIXPACKS"
5
+ },
6
+ "deploy": {
7
+ "startCommand": "python quantum_terminal_demo.py",
8
+ "healthcheckPath": "/",
9
+ "healthcheckTimeout": 100,
10
+ "restartPolicyType": "ON_FAILURE",
11
+ "restartPolicyMaxRetries": 3
12
+ }
13
+ }