Running multiple instances of Rails Server

前端 未结 8 627
南笙
南笙 2020-12-14 06:34

I am new to Rails, so please forgive me if this is obvious.

I am doing a lot of experimenting, creating to applications, testing features, etc. It got my first scaff

8条回答
  •  离开以前
    2020-12-14 06:40

    In Rails 5 and Puma server, this is the way I could achieve this:

    With two terminals, run rails server in each terminal specifying different Pid files and different ports:

    this way, I can simulate two domains for the same app on development

提交回复
热议问题