OpenBSD 5.7을 실행하는 VirtualBox에서 Ruby 2.2.0과 Rails 4.2를 설정했지만 rails s
을 수행 할 때 http://10.0.0.4:3000/에 연결할 수없는 이유는 무엇입니까?`rails s`이 더 이상 10.0.0.4:3000에 바인딩하지 않습니다.
% rails s -p 3000 -b 10.0.0.4
=> Booting Puma
=> Rails 4.2.0 application starting in development on http://10.0.0.4:3000
=> Run `rails server -h` for more startup options
=> Ctrl-C to shutdown server
Puma 2.11.0 starting...
* Min threads: 0, max threads: 16
* Environment: development
* Listening on tcp://10.0.0.4:3000
하지만 난 정말 모든 것을해야한다 : 나는 명시 적으로 IP와 포트를 정의하면
% rails s
=> Booting Puma
=> Rails 4.2.0 application starting in development on http://localhost:3000
=> Run `rails server -h` for more startup options
=> Ctrl-C to shutdown server
Puma 2.11.0 starting...
* Min threads: 0, max threads: 16
* Environment: development
* Listening on tcp://localhost:3000
그것은, 그러나, 작동합니까?
http://stackoverflow.com/questions/3842818/how-to-change-rails-3-server-default-port-in-develoment –
http://stackoverflow.com/questions/18103316/how -to-change-default-port-of-a-rails-4-app/19586744 # 19586744 –
그게 어떻게 관련이 있는지, 미안해. –