andandandand
andandandand

Reputation: 22270

RoR Question: Where's script/server?

I'm following Head First Ruby, and found out that the server file inside the script folder of my first project is missing. I followed this Ubuntu installation tutorial (sorry, Spanish link, still should be easy to follow the commands) and I guess some files/packages are missing. How I can get them?

antonio@antonio-desktop:~/Documents/tickets$ ruby script/server
ruby: No such file or directory -- script/server (LoadError)
antonio@antonio-desktop:~/Documents/tickets$ ls
app     config.ru  doc      lib  public    README  test  vendor
config  db         Gemfile  log  Rakefile  script  tmp
antonio@antonio-desktop:~/Documents/tickets$ cd script
antonio@antonio-desktop:~/Documents/tickets/script$ ls
rails

Upvotes: 3

Views: 2203

Answers (1)

Winfield
Winfield

Reputation: 19145

If you're running Rails 3, it's now:

./script/rails server

All of the separate rails scripts in the scripts directory run through the single ./script/rails dispatcher now. This works for the console and other things you may be looking for as well (ie: ./script/rails console).

Upvotes: 3

Related Questions