I have root and deployer users in my ubuntu 13.10. I also have nginx, unicorn installed with Rails 4 application. I'm deploying my application using capistrano 3.
Problem: When I prepare a env for Rails. I'm installed nginx using root user. But after my deployment is complete, my deployer can't restart nginx server. Because it's started by root user. And also deployer can't access to write .pid file.
What should I do? Uninstall nginx and re-install with deployer user?
Thank you for advice. Sorry for poor English.