Using Rails and Puma with subdomains lvh.me?

后端 未结 1 1476
醉梦人生
醉梦人生 2020-12-29 09:03

I\'m using Rails 4 with subdomains, and now switched from Unicorn to Puma. Seems to work fine, but when I try to start \"rails s\" I get:

Rails 4.2.0 applica         


        
相关标签:
1条回答
  • 2020-12-29 09:39

    Rails provide only one way to specify binding host (through -b, --binding argument).

    So, I think you have only one simple and appropriate way to resolve your problem. You should create bash/sh alias for running Rails:

    alias lvh='rails s -p 3000 -b lvh.me'
    
    0 讨论(0)
提交回复
热议问题