LoginSignup
2
1

More than 5 years have passed since last update.

Rails(WEBRick)をIPを指定して起動する

Posted at

事象

WEBRickでrailsサーバを起動した場合、localhost:3000でアクセスできない

環境

  • universal.x86_64-darwin14
  • ruby 2.0.0p481
  • Rails 4.2

対処

以下のようにIPを指定して起動する

rails s -b '0.0.0.0'
2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1