http://site.com/users/password/new is returning a 404 in production mode but not in development. I am deploying via capistrano and it looks like it’s copying the entire site over properly. I tried running the console in production mode on the server and couldn’t find anything. Has anyone seen this before?
http://site.com/users/password/new is returning a 404 in production mode but not in development. I am
Share
Since this path works in development and fails in production I would focus on the differences between your environments.
A common issue is that people commit their changes locally, but do not push them to (e.g.) GitHub before deploying with capistrano. Can you ssh into your server and go to the current path and run
rake routesthere? Try and check if there are differences.Once you’ve confirmed that at least the routes on the server are up to date, try checking the production log while accessing /user/password/new. It should be in /shared/log/production.log. You could ssh there and use
tail -f production.logto follow the log while you try to access the path.On a side note, it seems that you are using Devise. There have been similar issues for the user root path. See for example this question. Perhaps this will shed some light on your problem.