Displaying 8 results from an estimated 8 matches for "after_symlink".
2006 May 14
2
Capistrano + symlink to a shared images directory
...es directory.
Reason being is I am adding an image upload to the site (not
file_column) and need to easily add the uploaded images and thumbs into
a shared directory. Could someone please help me with the proper
commands to map the public/images directory to the shared/images
directory via the after_symlink task in deploy.rb?
thanks!
--
Posted via http://www.ruby-forum.com/.
2005 Dec 27
2
Praise Switchtower (plus a quick question)
Switchtower is really cool once you get it going. Quick question, I do
a:
% rake deploy
% rake remote_exec ACTION=symlink_pictures
...but what''s the easiest way to combine the two in a single command?
Thanks
CM
--
Posted via http://www.ruby-forum.com/.
2006 Mar 08
6
best practices for handling uploaded images and capistrano
Quick question: I am going to use the file_column plugin to manage uploading
thumbnails. By default the images are stored in the public/ dir of the
rails project. The problem I see is that when capistrano redeploys a new
build and symlinks it in none of the images will be in the new public/
dir... Does anyone have a solution for this?
Thanks,
Zack
-------------- next part --------------
An
2006 Apr 25
4
Symlinks in Capistrano?
I have a few projects with large directories (say, user-uploaded files) that
make using Capistrano a bit awkward. However, I suspect that I may have
reached the "write a custom task" level.
(I suppose I''m just thinking out loud, here...)
It seems as though I''d want this directories symlinked in /shared... Maybe
there''s a way to extend the
2007 Apr 10
0
Multiple after_deploys in deploy.rb
..., :roles => [:rolea] do
run "task a"
end
task :after_deploy, :roles => [:roleb] do
run "task b"
end
The problem seems that the second after_deploy clobbers the first even
though they are meant for different roles. I do a workaround now by
making role a use after_symlink, but now I am adding a few more roles
and I am running out of after_* to workaround. Is there a way to do the
following
task :after_deploy do
if current_server.role == :rolea
run "task a"
elsif current_server.role == :roleb
run "task b"
end
end
Th...
2006 Apr 01
4
Saving images in shared directory w/ Capistrano/SVN?
Hi all,
I''m using Capistrano and SVN to version control and deploy, but I''m not
sure what to do about my images directory. I use file_column and
RMagick to save images to the disk under a model called "Image", and
they''re saved in public/image/... etc.
Each time I deploy a new version, my image folder doesn''t exist anymore.
I don''t want
2007 Jan 18
4
[ActsAsFerret] Index Directory Disappears and Not Re-created
Hi,
This is a recurring issue for me - the index directory on my production
server and everything below it occasionally disappears and isn''t
reconstructed. I tried manually creating the entire index path manually
before starting the server, but it still happened while the server is
running.
I don''t know what''s causing the index to disappear and I''m also not
2006 May 19
6
Capistrano: update instead of checkout?
Hello,
Just started to use Capistrano for deployment and everything works beautifully
and as advertised. Thanks Jamis for this great piece of software.
However, in my case, the deploy task takes quite some time since my SVN
repository resides on a different continent than my app/db server and I''ve
frozen all the rails code in the vendor dir and checked in. All in all my app
sums up to