Heroku deployed app runs locally but not on webserver

I have deployed heroku web app without error and I can run on that folder on my local machine but when I try to open on herokuaap.com it gives error and doesnt open. If wonder if localhost can accept running with errors but not reporting but heroku doesnt accept it to run?