tmp/sockets/unicorn.sock 是否应该为我们的 unicorn 服务器的 capistrano 部署进行符号链接
我已经在 unicorn 上部署了一个 Rails 应用程序,并使用 Capistrano 来管理部署。将 tmp/sockets/unicorn.sock
文件符号链接到 shared
目录中的文件是个好主意吗?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是一个链接两个系统进程(您的应用程序服务器和 Web 服务器)的文件。
我肯定至少会把它放在 shared 目录下,甚至更好地放在 /var 文件系统下。
如果将其保留在当前目录下,它实际上绑定到特定的部署版本。
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.