tmp/sockets/unicorn.sock 是否应该为我们的 unicorn 服务器的 capistrano 部署进行符号链接

发布于 2024-10-08 05:39:14 字数 140 浏览 0 评论 0原文

我已经在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

东风软 2024-10-15 05:39:14

这是一个链接两个系统进程(您的应用程序服务器和 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文