mjs*_*mjs 3 deployment shared capistrano
默认情况下,Capistrano酒店的deploy任务从创建符号连接shared/log,shared/system和shared/pids目录到版本目录.我怎么能阻止这个?
如果您在第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)
...
这是共享文件夹的定义方式.我想你可以在capistrano配方中添加以下行来防止这些目录被符号链接:
set :shared_children, %w()
更新: 关于以下评论:使用capistrano的边缘版本,现在应该可以使用了.请参阅此拉取请求以使符号链接的硬编码更少.
| 归档时间: | 
 | 
| 查看次数: | 4885 次 | 
| 最近记录: |