<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.2" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: Stop uploaded files getting &#8216;deleted&#8217; with Capistrano</title>
	<link>http://blog.vixiom.com/2007/03/13/stop-uploaded-files-getting-deleted-with-capistrano/</link>
	<description>The Vixiom Blog :: Flex &#38; Flash on Rails</description>
	<pubDate>Tue,  2 Dec 2008 02:11:26 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.2</generator>
		<item>
		<title>By: Greg H</title>
		<link>http://blog.vixiom.com/2007/03/13/stop-uploaded-files-getting-deleted-with-capistrano/#comment-58696</link>
		<dc:creator>Greg H</dc:creator>
		<pubDate>Sun, 06 Jul 2008 14:49:15 +0000</pubDate>
		<guid>http://blog.vixiom.com/2007/03/13/stop-uploaded-files-getting-deleted-with-capistrano/#comment-58696</guid>
		<description>hi David,

thanks for the info - between this and the capistrano source I figured out how to make my assets directory persistent.

for anyone stumbling in, the file callbacks.rb in capistrano 2.4.3 suggests that tasks named 'after_xxx' and 'before_xxx' aren't recommended - instead, the before and after methods should be used.

so, here's my task for symlinking an assets directory;

namespace :deploy do
  #desc "Symlink assets directory from latest release (*)"
  task :finalise_update_assets, :except =&#62; { :no_release =&#62; true } do
    run "ln -s #{shared_path}/assets #{latest_release}/public/assets"
  end
end
after "deploy:finalize_update", "deploy:finalise_update_assets"</description>
		<content:encoded><![CDATA[<p>hi David,</p>
<p>thanks for the info - between this and the capistrano source I figured out how to make my assets directory persistent.</p>
<p>for anyone stumbling in, the file callbacks.rb in capistrano 2.4.3 suggests that tasks named &#8216;after_xxx&#8217; and &#8216;before_xxx&#8217; aren&#8217;t recommended - instead, the before and after methods should be used.</p>
<p>so, here&#8217;s my task for symlinking an assets directory;</p>
<p>namespace :deploy do<br />
  #desc &#8220;Symlink assets directory from latest release (*)&#8221;<br />
  task :finalise_update_assets, :except =&gt; { :no_release =&gt; true } do<br />
    run &#8220;ln -s #{shared_path}/assets #{latest_release}/public/assets&#8221;<br />
  end<br />
end<br />
after &#8220;deploy:finalize_update&#8221;, &#8220;deploy:finalise_update_assets&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alastair</title>
		<link>http://blog.vixiom.com/2007/03/13/stop-uploaded-files-getting-deleted-with-capistrano/#comment-45181</link>
		<dc:creator>Alastair</dc:creator>
		<pubDate>Wed, 05 Mar 2008 03:35:13 +0000</pubDate>
		<guid>http://blog.vixiom.com/2007/03/13/stop-uploaded-files-getting-deleted-with-capistrano/#comment-45181</guid>
		<description>Hey David, you're right about setting svn ignore on the local uploads directory. I should have mentioned that for every site I set up right after the initial svn check in I set all 'dynamic' directories to be ignored. Hopefully that will fix it for you.</description>
		<content:encoded><![CDATA[<p>Hey David, you&#8217;re right about setting svn ignore on the local uploads directory. I should have mentioned that for every site I set up right after the initial svn check in I set all &#8216;dynamic&#8217; directories to be ignored. Hopefully that will fix it for you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David</title>
		<link>http://blog.vixiom.com/2007/03/13/stop-uploaded-files-getting-deleted-with-capistrano/#comment-45179</link>
		<dc:creator>David</dc:creator>
		<pubDate>Wed, 05 Mar 2008 02:30:13 +0000</pubDate>
		<guid>http://blog.vixiom.com/2007/03/13/stop-uploaded-files-getting-deleted-with-capistrano/#comment-45179</guid>
		<description>I can't seem to get this to work either.  My problem is similar to Greg's.  Is there anything else that needs to be done?  Permissions? Do I need to svn ignore the local uploads directory?</description>
		<content:encoded><![CDATA[<p>I can&#8217;t seem to get this to work either.  My problem is similar to Greg&#8217;s.  Is there anything else that needs to be done?  Permissions? Do I need to svn ignore the local uploads directory?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Greg</title>
		<link>http://blog.vixiom.com/2007/03/13/stop-uploaded-files-getting-deleted-with-capistrano/#comment-41302</link>
		<dc:creator>Greg</dc:creator>
		<pubDate>Sat, 12 Jan 2008 11:31:34 +0000</pubDate>
		<guid>http://blog.vixiom.com/2007/03/13/stop-uploaded-files-getting-deleted-with-capistrano/#comment-41302</guid>
		<description>I can't seem to get this to work...  Is there any reason why copying all of my files to the new release directory wouldn't work (it doesn't...)?  How would I go about making sure the symlink is actually being created there on the server?  After deploying,  the files are still ending up in the release directory and not the shared/system folder ;( 

It's rather late right now,  so advanced apologies if this doesn't make any sense.</description>
		<content:encoded><![CDATA[<p>I can&#8217;t seem to get this to work&#8230;  Is there any reason why copying all of my files to the new release directory wouldn&#8217;t work (it doesn&#8217;t&#8230;)?  How would I go about making sure the symlink is actually being created there on the server?  After deploying,  the files are still ending up in the release directory and not the shared/system folder ;( </p>
<p>It&#8217;s rather late right now,  so advanced apologies if this doesn&#8217;t make any sense.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: &#8220;Capistrano Ã¼berschreibt meine Dateien immer!&#8221; at funkensturm. &#124; Blog</title>
		<link>http://blog.vixiom.com/2007/03/13/stop-uploaded-files-getting-deleted-with-capistrano/#comment-39101</link>
		<dc:creator>&#8220;Capistrano Ã¼berschreibt meine Dateien immer!&#8221; at funkensturm. &#124; Blog</dc:creator>
		<pubDate>Sun, 23 Dec 2007 21:12:27 +0000</pubDate>
		<guid>http://blog.vixiom.com/2007/03/13/stop-uploaded-files-getting-deleted-with-capistrano/#comment-39101</guid>
		<description>[...] Um das zu verhindern (hier gefunden) muss man im meinprojekt/shared Verzeichnis auf dem Server wo man es deployed hat die Verzeichnisse erstellen, die solche wichtigen Sachen enthalten. [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] Um das zu verhindern (hier gefunden) muss man im meinprojekt/shared Verzeichnis auf dem Server wo man es deployed hat die Verzeichnisse erstellen, die solche wichtigen Sachen enthalten. [&#8230;]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: marius</title>
		<link>http://blog.vixiom.com/2007/03/13/stop-uploaded-files-getting-deleted-with-capistrano/#comment-39100</link>
		<dc:creator>marius</dc:creator>
		<pubDate>Sun, 23 Dec 2007 20:59:25 +0000</pubDate>
		<guid>http://blog.vixiom.com/2007/03/13/stop-uploaded-files-getting-deleted-with-capistrano/#comment-39100</guid>
		<description>THANKS MAN!</description>
		<content:encoded><![CDATA[<p>THANKS MAN!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
