如何防止Capistrano在部署的`shared`目录中生成符号链接?

mjs*_*mjs 3 deployment shared capistrano

默认情况下,Capistrano酒店的deploy任务从创建符号连接shared/log,shared/systemshared/pids目录到版本目录.我怎么能阻止这个?

Hec*_*lot 7

如果您在第52行查看部署配方的源代码,您可以看到:

=========================================================================
These variables should NOT be changed unless you are very confident in
what you are doing. Make sure you understand all the implications of your
changes if you do decide to muck with these!
=========================================================================
...
_cset :shared_children,   %w(system log pids)
...
Run Code Online (Sandbox Code Playgroud)

这是共享文件夹的定义方式.我想你可以在capistrano配方中添加以下行来防止这些目录被符号链接:

set :shared_children, %w()
Run Code Online (Sandbox Code Playgroud)

更新: 关于以下评论:使用capistrano的边缘版本,现在应该可以使用了.请参阅此拉取请求以使符号链接的硬编码更少.