fixed and understand heroku and localhost