changed the way the app is run on Heroku