This directory contains everything needed to deploy AMOS to Railway with a React frontend.
# Check prerequisites
./deploy.sh check
# Build and test locally
./deploy.sh testVisit http://localhost:8080 to see the AMOS dashboard.
# Install Railway CLI if needed
npm install -g @railway/cli
# Deploy to Railway
./deploy.sh deploy- ✅ Health check endpoint
- ✅ Neural network status API
- ✅ Agent management (spawn/list)
- ✅ WebSocket for real-time events
- ✅ Static file serving
- ✅ CORS enabled
- ✅ Neural network visualization
- ✅ Agent management panel
- ✅ Real-time event stream
- ✅ Dark theme UI
- ✅ Responsive design
- ✅ Multi-stage Docker build
- ✅ Railway configuration
- ✅ Environment variables
- ✅ Health checks
- ✅ Auto-scaling ready
Create a .env file based on .env.example:
# Required
PORT=8080
RAILWAY_ENVIRONMENT=production
# Optional
AMOS_LOG_LEVEL=info
AMOS_MAX_AGENTS=50GET /api/health- Health checkGET /api/neural/status- Neural network statusPOST /api/agents/spawn- Spawn new agentGET /api/agents/list- List all agentsWS /ws- WebSocket connection
- Ensure Rust 1.83+ is installed
- Check that all AMOS crates are in the correct location
- Verify Docker is running
- Check logs:
docker-compose logs - Verify port 8080 is not in use
- Ensure environment variables are set
- Verify Railway CLI is logged in:
railway login - Check Railway dashboard for deployment logs
- Ensure billing is set up on Railway
Once deployed, monitor your app:
# View logs
railway logs
# Check status
railway status
# Open dashboard
railway open- Add Authentication: Implement JWT-based auth
- Add Database: Connect PostgreSQL via Railway
- Implement Zones: Add zone-specific features
- Add Monitoring: Set up Datadog or similar
- Scale: Configure auto-scaling rules
Part of the AMOS project.