v1.5.0beta1 - can't start rails server in development vm

(cpradio) #1

Okay, so I’ve pulled latest, ran bundle install, bundle exec rake db:migrate (even though I don’t think that is necessary), then ran bundle exec rails s, but it shows

discourse@discourse:~$ cd ~/discourse; bundle exec rails s
=> Booting Thin
=> Rails 4.2.4 application starting in development on http://localhost:3000
=> Run `rails server -h` for more startup options
=> Ctrl-C to shutdown server
Thin web server (v1.6.4 codename Gob Bluth)
Maximum connections set to 1024
Listening on localhost:3000, CTRL+C to stop

but it doesn’t respond to any requests… I’m not seeing anything obvious showing up in the discourse/log/development.log or discourse/log/development_errors.log, where else should I be looking to figuring out why it won’t respond to requests?

nm, it seems to be an issue with port forwarding through virtual box. As I can use wget locally and get it to show requests on the rails server. Off to figure out why this may be broken…

(Régis Hanol) #2

Have you tried bundle exec rails s -b to bind it to all the network interfaces instead of only the localhost?

(cpradio) #3

Yeah, I just found that on StackOverflow, about to try that really soon

And that was it! :smile:

(Régis Hanol) #4