Ensure maintenance mode is only run on rails-app layers.