handle api-only rails server