Reputation: 3897
pulled down a repo from git. For some reason I need to do
./script/rails.rb s
where on the rails 3 ap I started on my box, I can just do the
rails server
can anyone help me set up my environment so I don't have to do this? I'm still trying to figure out what I need to type to do a migration...
Upvotes: 1
Views: 310
Reputation: 23307
I think I've figured this out. The repo you downloaded was from somebody developing on a Windows machine. They have to add the ".rb" extention to script/rails
to get it to work right.
Calling rails server
is really just an alias for script/rails
. But you're getting an error because when you type rails server
, script/rails
isn't there.
The solution is easy: in your local copy of that project, rename script/rails.rb
back to script/rails
the way it should be.
Also, rails s
and rails server
are the same thing - one is just a shortcut.
Upvotes: 3