add https redirect for heroku server

For now when the app is in development mode the redirect is skipped.