api.larun.spaceDNS does not exist- Backend API never deployed to Railway (or any platform)
- Frontend hardcoded to expect
https://api.larun.space
cd ~/portfolio/larun
# Login to Railway (opens browser)
railway login
# Initialize project
railway init
# Select: Create new project
# Name: larun-api
# Deploy
railway upRailway will give you a URL like:
https://larun-api-production-xxxx.up.railway.app
In your domain registrar (where larun.space is registered):
Add a CNAME record:
Type: CNAME
Name: api
Value: larun-api-production-xxxx.up.railway.app
TTL: 3600
OR in Railway Dashboard:
- Go to your Railway project
- Settings → Domains
- Click "Add Domain"
- Enter:
api.larun.space - Railway will give you CNAME records to add
Wait 5-10 minutes for DNS propagation, then test:
# Check DNS
nslookup api.larun.space
# Test API
curl https://api.larun.space/health
# Expected response:
# {
# "status": "healthy",
# "timestamp": "...",
# "skills_available": [...]
# }Visit https://larun.space and try:
- Open browser console (F12)
- Navigate to app/chat/dashboard
- Check for API calls - should now work
If you want to skip DNS configuration for now:
cd ~/portfolio/larun
railway login
railway init
railway uprailway domain
# Copy the URL, e.g.: https://larun-api-production-xxxx.up.railway.appEdit these files in ~/portfolio/larun-space/:
File: js/api.js (Line 17)
// Change from:
baseURL: 'https://api.larun.space',
// To:
baseURL: 'https://larun-api-production-xxxx.up.railway.app',File: js/app.js (Line 9)
// Change from:
apiBaseURL: 'https://api.larun.space',
// To:
apiBaseURL: 'https://larun-api-production-xxxx.up.railway.app',cd ~/portfolio/larun-space
git add .
git commit -m "Update API endpoint to Railway"
git pushBefore deploying, verify all models exist:
cd ~/portfolio/larun
find nodes -name "*.tflite" | wc -l
# Should show: 8 (or number of models you have)
# List all models
ls -lh nodes/*/model/*.tfliteMake sure these are set in Railway dashboard:
SUPABASE_URL=https://mwmbcfcvnkwegrjlauis.supabase.co
SUPABASE_SERVICE_KEY=<your-service-key>
FRONTEND_URL=https://larun.spaceInstall dependencies:
cd ~/portfolio/larun
pip install -r requirements.txtCheck requirements.txt and ensure Dockerfile is present
Check Railway logs:
railway logs- ✅ Test all API endpoints
- ✅ Verify model inference works
- ✅ Test frontend integration
- ✅ Monitor Railway logs for errors
- ✅ Set up custom domain properly
Estimated Time: 15-20 minutes Cost: Railway free tier ($5 credit/month) is enough for testing