Question

I have deployed a rails app on unicorn, and am using Capistrano to manage deployment. Is it a good idea to symlink the tmp/sockets/unicorn.sock file to file in the shared directory?

Was it helpful?

Solution

This is a file that links two system processes, your app server and your web server.

I would definitely do put it at least under the shared directory or even better under /var file system.

If you leave it under current directory it is in fact bound to a particular deployment release.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top