ruby - Rails - Heroku error, nothing in logs, works locally -


i've made minor modifications rails app , 1 route works locally, raises error on heroku.

this simple route directs 'new' of controller.

everything works fine locally, in prod: raise heroku error

we're sorry, went wrong

there nothing in logs, i've put rails.logger.warn in method, nothing appears.

  1. how possible specific error in production heroku not in local?

  2. can same process in local see error , fix it?

you should try reproduce issue locally fetching data local database.

first make sure current branch (most master) same heroku master app deployed.

then pull database local , try re same steps. follow commands capture latest snapshot , store database local.

 heroku pg:backups capture --app sushi curl -o latest.dump `heroku pg:backups public-url --app sushi` rake db:drop db:create pg_restore --verbose --clean --no-acl --no-owner [-u user_name] -d database_name latest.dump 

https://devcenter.heroku.com/articles/heroku-postgres-import-export


Comments

Popular posts from this blog

javascript - Karma not able to start PhantomJS on Windows - Error: spawn UNKNOWN -

c# - Display ASPX Popup control in RowDeleteing Event (ASPX Gridview) -

Nuget pack csproj using nuspec -