Skip to content

Commit 442aa22

Browse files
alanopsclaude
andcommitted
Clean up Railway deployment for pure Nixpacks
- Remove railway.toml to let Railway auto-detect Nixpacks - Remove any Dockerfile references completely - Simplify npm start script for Railway - Add .railwayignore for cleaner builds - Optimize nixpacks.toml configuration - This should force Railway to use Nixpacks instead of Docker 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 2812cf4 commit 442aa22

4 files changed

Lines changed: 32 additions & 15 deletions

File tree

.railwayignore

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Ignore backup files
2+
Dockerfile.backup
3+
4+
# Ignore development files
5+
.env*
6+
!.env.example
7+
8+
# Ignore build artifacts
9+
.next/
10+
out/
11+
dist/
12+
node_modules/
13+
14+
# Ignore documentation
15+
*.md
16+
!README.md
17+
18+
# Ignore test files
19+
tests/
20+
coverage/
21+
22+
# Ignore git
23+
.git/
24+
.gitignore

nixpacks.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1+
[phases.setup]
2+
nixPkgs = ["nodejs-18_x"]
3+
14
[phases.build]
2-
cmds = [
3-
"npm ci",
4-
"npm run build"
5-
]
5+
cmds = ["npm ci", "npm run build"]
66

7-
[phases.start]
8-
cmd = "npm run railway:start"
7+
[start]
8+
cmd = "npm start"
99

1010
[variables]
1111
NODE_ENV = "production"

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,12 @@
77
"build": "next build && npm run build:server && npm run setup:public",
88
"build:server": "cd src/server && npm install && npm run build",
99
"setup:public": "mkdir -p src/server/public && cp -r out/* src/server/public/",
10-
"start": "next start",
10+
"start": "npm run build && cd src/server && node dist/index.js",
1111
"start:server": "cd src/server && npm start",
1212
"export": "next export",
1313
"lint": "next lint",
1414
"test": "jest",
15-
"typecheck": "tsc --noEmit",
16-
"railway:start": "npm run build && cd src/server && node dist/index.js"
15+
"typecheck": "tsc --noEmit"
1716
},
1817
"dependencies": {
1918
"@radix-ui/react-dialog": "^1.0.5",

railway.toml

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)