Skip to content

Commit 1a44de1

Browse files
wakesyncclaude
andcommitted
chore(runner): add Railway deployment configuration
- Add railway.json for Railway platform settings - Add nixpacks.toml for build configuration - Add Procfile for process definition - Update start script to use compiled output Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 4417659 commit 1a44de1

4 files changed

Lines changed: 32 additions & 1 deletion

File tree

‎packages/runner/Procfile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
worker: node dist/index.js

‎packages/runner/nixpacks.toml‎

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Nixpacks configuration for Railway deployment
2+
# This file configures how Railway builds and runs the runner service
3+
4+
[phases.setup]
5+
nixPkgs = ["nodejs_22", "corepack"]
6+
7+
[phases.install]
8+
cmds = [
9+
"corepack enable",
10+
"corepack prepare pnpm@latest --activate",
11+
"cd ../.. && pnpm install --frozen-lockfile"
12+
]
13+
14+
[phases.build]
15+
cmds = ["cd ../.. && pnpm build"]
16+
17+
[start]
18+
cmd = "node dist/index.js"

‎packages/runner/package.json‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
"files": ["dist"],
1616
"scripts": {
1717
"dev": "tsx watch src/index.ts",
18-
"start": "tsx src/index.ts",
18+
"start": "node dist/index.js",
19+
"start:dev": "tsx src/index.ts",
1920
"build": "tsup",
2021
"clean": "rm -rf dist",
2122
"test": "vitest run",

‎packages/runner/railway.json‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"$schema": "https://railway.app/railway.schema.json",
3+
"build": {
4+
"builder": "NIXPACKS"
5+
},
6+
"deploy": {
7+
"startCommand": "pnpm start",
8+
"restartPolicyType": "ON_FAILURE",
9+
"restartPolicyMaxRetries": 10
10+
}
11+
}

0 commit comments

Comments
 (0)