forked from ExtensionShield/ExtensionShield
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrailway.toml
More file actions
62 lines (52 loc) · 2.11 KB
/
Copy pathrailway.toml
File metadata and controls
62 lines (52 loc) · 2.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# Railway Configuration for ExtensionShield
# https://docs.railway.app/reference/config-as-code
[build]
# Use the existing Dockerfile for building
builder = "dockerfile"
dockerfilePath = "Dockerfile"
# Railway automatically passes environment variables as build arguments
# if they match ARG names in the Dockerfile. Make sure these are set in
# Railway dashboard as SERVICE variables (not shared variables):
# VITE_SUPABASE_URL - Frontend build-time: Supabase project URL
# VITE_SUPABASE_ANON_KEY - Frontend build-time: Supabase anon key
# VITE_API_BASE_URL - Optional: Custom API base URL
#
# IMPORTANT: These MUST be set in Railway dashboard BEFORE building.
# Railway will pass them as Docker build arguments automatically.
# If these are missing, the frontend will be built without Supabase config
# and you'll see "Supabase is not configured" error in production.
[deploy]
# Number of replicas (Railway handles scaling)
numReplicas = 1
# Health check configuration
healthcheckPath = "/health"
healthcheckTimeout = 120
healthcheckInterval = 10
# Start command timeout - give more time for Python/UV to initialize
startCommand = ""
# Restart policy
restartPolicyType = "on_failure"
restartPolicyMaxRetries = 1
# Resource limits (optional - adjust based on your plan)
# memory = "1GB"
# cpu = 1
[env]
# Default environment variables
# Secrets should be set in Railway dashboard, not here
# Note: Do NOT set PORT here - Railway will inject it automatically
PYTHONDONTWRITEBYTECODE = "1"
PYTHONUNBUFFERED = "1"
LLM_PROVIDER = "openai"
EXTENSION_STORAGE_PATH = "/app/extensions_storage"
EXTSHIELD_MODE = "cloud"
[static]
# Not used since we serve static files via FastAPI
disabled = true
# =============================================================================
# CLI Deployment Shortcuts
# =============================================================================
# Quick deploy: railway up OR make deploy OR ./scripts/deploy.sh
# Deploy detach: railway up --detach
# Setup: railway login && railway link
# Logs: railway status && railway logs -f
# =============================================================================