Monday 26 September 2016

Start multiple servers for same project with different ports

Rails uses the pid of your running server to check whether a server is already running or not.
This is stored under tmp/pids/server.pid If you want to run the same application again , you need a different pid for your server.
rails s -p 4000 --pid tmp/pids/server2.pid
Happy Coding..!!

No comments:

Post a Comment