Load the rails app first