Starting thin server on different ports

前端 未结 1 1157
予麋鹿
予麋鹿 2021-01-05 16:22

I\'m a newbie o thin. I have a ruby on rails application. Today I can start the application normally, by the command

sudo thin start -d

We

相关标签:
1条回答
  • 2021-01-05 17:17

    Just to people know.

    I found the solutions for this question. You CAN start the thin server on different ports with tha same application and with the same environment.

    You just need to set different PID files by the -P (UpperCase) parameter.

    Example:

    Server 1 (port 3030, production environment, default pid, deattached)

    thin start -e production -p 3030 -d
    

    Server 2 (port 3040, production environment,"MY_PID.pid" pid file, deattached)

    thin start -e production -p 3040 -P MY_PID.pid -d
    
    0 讨论(0)
提交回复
热议问题