Is there a proper way to relocate server pids from ~/[RAILS APP]/tmp/pids to the system /tmp/pids folder? The reason is to create functions to stop and restart rails server by a simple function. Or is there an alternative, preferable, approach?
Asked
Active
Viewed 721 times
1 Answers
3
Try starting the server with this:
bundle exec rails s -p 3000 -P [NOT RAILS]/tmp/pids/server.pid
Credit: Rails Update to 3.2.11 breaks running multiple servers