English 中文(简体)
• 如何防止Capistrano在“共享”的部署目录中形成连接点?
原标题:How to prevent Capistrano generating symlinks in the `shared` directory on deployment?

页: 1 任务产生与<条码>共享/log、<条码>共享/系统和<条码>共享/pids目录的等同。 我如何防止这种情况?

问题回答

如果你看.source Code 用于第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)
...

这就是如何界定共有的夹。 我恳请你在你的帽子中增加以下一线,以防止这些名录连接起来:

set :shared_children, %w()

Update: Regarding the comments below: With the edge version of capistrano this should now be working. See this pull request to make the symlinks less hard-coded.

http://github.com/capistrano/capistrano/blob/2fd9180125daa4e8dda299bb90e946f2405900e9/lib/capistrano/recipes/deploy.rb#L246"rel=“nofollow noretinger”>deploy.rb

5月份固定在Capistrano 2.10中;见。 如何防止在“共享”的部署目录中产生电离层链条?





相关问题
VS 2008 : How to publish with out DLLs?

I have developed a web application in Visual Studio 2008 and want to publish it in to the production server. I see a publish option there.But its producing files with DLL. I dont want to publish only ...

Apache: Deploying a new site to the server

I have a site currently live on a domain. I would like to switch it to a new site, that is currently in a password protected sub directory on this server. I have a "Site Maintenance in Progress" page....

Appropriate strategy for tagging and hotfixing with git

I was wondering if the strategy I m using for tagging and hotfixing tags (which then I use for deploying rails applications) with git is appropriate. For tagging I just tag a commit of the master ...

Pylons deployment questions

I m a beginner with Pylons and I ve mostly developed on my localhost using the built-in web server. I think it s time to start deployment for my personal blog, I have a Debian Lenny server with ...

Do I want Publish or Release Build in VB.net?

I wrote a little (like 40 lines little) Winforms application with VB.net in Visual Studio 2010. Now I ve released the code as a Google Code project. It s easy for a developer to get the source but I d ...

Need advice on my PHP development solution

Here is how our current php development solution is set up: Each developer work on their local machine. Each developer commit their change to a common SVN server (intranet). A commit hook upload the ...

loading from JAR files during deployment vs development

when i am loading some data into my java program, i usually use FileInputStream. however i deploy the program as a jar file and webstart, so i have to use getRessource() or getRessourceAsStream() to ...

热门标签