Just to answer something very specific here.
never ever run the development version (RAILS_ENV=development) in production. This will result is extremely insecure setup, that is both slow and potentially reveals information to anonymous users they should not have