James Zaghini
James Zaghini

Reputation: 4011

Must edit routes.rb after starting server for routes to work

I am starting WEBrick with rails -s

After the server starts, none of my routes work until I make a small edit to routes.rb - eg just add a blank line and save again. Note I do not restart the server after this edit.

I don't have the same problem in production, which is using Apache instead of WEBrick.

I'm using Rails 4.0.5 and Spree 2.2.2

Upvotes: 0

Views: 50

Answers (1)

bratsche
bratsche

Reputation: 2674

This is a weird sounding error. I've never seen this happen in several years of using Rails. I guess the first thing I would try doing is switching from Webrick to something else, like thin.

Try adding thin to your Gemfile, then run thin start -p 3000 or whatever and see if this persists.

Upvotes: 1

Related Questions