Background info:
I\'m using GIT to get a repository of a project with Ruby files in it. The project lives in my SITES folder under home directory on my Mac.
You're running rails server
from the wrong directory. Go INTO the directory containing your app and run the command from there. For example, if you ran rails new thingy
, you must be in the thingy
directory when you use rails server
.
Your folder director should be in Gemfile,
Other issue could be:
You must have deleted bin folder from root directory or some files in it. please recover it back and all will work normally.
Usually if you clone a repository or if you are using Docker, files like .gitignore
or .dockerignore
has instructions for doesn't include bin folder, check in both files and simply remove the line with it.
You can execute rails new
in another directory and copy the generated bin folder to your project and then push to your repository.
I got this when upgrading from rails 2 to rails 3 also. Then I ran rails new .
to replace all the necessary files and it worked after that.