启动 Web 服务器
ruby
rails server
在同一环境中开发另一个项目并希望在不同端口上启动 Web 服务器时,可以使用-p 选项指定端口号,如:
ruby
$ rails s -p 4000
另外,-b选项可以指定 IP 地址
ruby
rails s -b 172.20.7.61