Rails 4.2 Server port forwarding on Vagrant does not work

后端 未结 5 1171
感情败类
感情败类 2020-12-22 22:44

I have a Vagrant VM with Rails installed with a sample app. The VM is configured to forward the port 3000 (of Rails Webrick server) to my host 3000 port.

co         


        
5条回答
  •  南方客
    南方客 (楼主)
    2020-12-22 23:20

    You can use an alias, on Ubuntu put it in ~/.bash_aliases
    I use:
    alias rs="rails server -b 0.0.0.0"

    You have to reload the terminal before you can use it

提交回复
热议问题