问题
This is my first Ruby development, I'm following through a book thats teaching me to build a Pinterest clone. Everything was working correctly until I logged into the environment today to pick up where I left off. When I try and run the project, or boot up the server, I'm getting this error.
bash: :command not found
It was working correctly last night when I closed the environment, and I havn't been able to find any information online as to how to fix the problem. Any suggestions would be great. Thanks. Let me know if you need additional code supplied.
回答1:
Be sure your runner is set to Ruby on Rails
and not Shell
.
回答2:
If you installed Rails only via Bundler, then rails will only be accessible if you run bundle exec rails.
A "naked" rails command will only exist if you gem install rails directly without Bundler.
来源:https://stackoverflow.com/questions/30740951/bash-command-not-found-cloud9-enviroment