Starting thin server on different ports

廉价感情. 提交于 2019-11-30 21:02:44

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
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!