I just deployed a rails application to heroku after which my rails server no longer works.It gives the following error
bin/rails:4:in `require': cannot load such file -- rails/commands (LoadError)
from bin/rails:4:in `<main>'
I ran gem query --local
and saw that rails 4.1 was installed.Can someone explain to me what this error means and how to resolve it
You need to check which rails is on your PATH... you probably installed are running on a mac that have an native rails.
Read this documentation to learn how to set your default rails instance.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.