# Quick Production Deployment Test ## Test the binary ```bash # Check binary version ./target/release/telfax --version # Test help ./target/release/telfax --help ./target/release/telfax serve --help # Test with production config (dry run) ./target/release/telfax serve --config deployment/config.production.toml ``` ## Install as macOS service ```bash # Run installer sudo ./deployment/install-macos.sh # Edit config nano /usr/local/etc/telfax/config.toml # Start service sudo launchctl load -w /Library/LaunchDaemons/com.telfax.server.plist # Check status sudo launchctl list | grep telfax # View logs tail -f /usr/local/var/log/telfax/telfax.log ``` ## Test API ```bash # Health check curl http://localhost:3000/health # Status (with token from config) curl -H "Authorization: Bearer prod-admin-token-change-me-abc123xyz" \ http://localhost:3000/api/v1/status # Modem status curl -H "Authorization: Bearer prod-admin-token-change-me-abc123xyz" \ http://localhost:3000/api/v1/modems # Prometheus metrics curl http://localhost:9090/metrics ``` ## Stop service ```bash sudo launchctl unload /Library/LaunchDaemons/com.telfax.server.plist ```