Skip to content

Commit dbff409

Browse files
author
AvatarOS Developer
committed
feat: add Railway configuration for WebSocket server deployment
1 parent 8639966 commit dbff409

File tree

2 files changed

+72
-0
lines changed

2 files changed

+72
-0
lines changed

.railwayignore

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
# Railway deployment ignore file
2+
# Only deploy WebSocket server essentials
3+
4+
# Development files
5+
_dev/
6+
dev/
7+
.vscode/
8+
.idea/
9+
10+
# Frontend build artifacts (not needed on Railway)
11+
dist/
12+
build/
13+
.next/
14+
out/
15+
16+
# Storybook
17+
storybook-static/
18+
.storybook/
19+
20+
# Reports and docs
21+
reports/
22+
coverage/
23+
docs/
24+
25+
# Test files
26+
tests/
27+
*.test.js
28+
*.spec.js
29+
30+
# Git
31+
.git/
32+
.github/
33+
34+
# Cache
35+
.cache/
36+
.parcel-cache/
37+
.vite/
38+
39+
# Logs
40+
logs/
41+
*.log
42+
43+
# OS files
44+
.DS_Store
45+
Thumbs.db
46+
47+
# IDE
48+
*.swp
49+
*.swo
50+
51+
# Scripts
52+
scripts/
53+
.gemini/
54+
55+
# Frontend source (not needed for WebSocket server)
56+
# Keep src/shared/lib for imports
57+
public/
58+
design/
59+
tokens/

railway.toml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
[build]
2+
builder = "NIXPACKS"
3+
4+
[deploy]
5+
startCommand = "npm start"
6+
healthcheckPath = "/healthz/config"
7+
healthcheckTimeout = 30
8+
restartPolicyType = "ON_FAILURE"
9+
restartPolicyMaxRetries = 10
10+
11+
[nixpacks]
12+
# Only install production dependencies
13+
nixpacksConfigPath = "nixpacks.toml"

0 commit comments

Comments
 (0)