Displaying 5 results from an estimated 5 matches for "after_setup".
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
2007 Jun 15
2
Ferret and capistrano, how to keep the indexes?
Hi, i''m using capistrano to deploy the application, but every time i
deploy it change all the directory, so i lost also the ferret''s indexes.
Is it possible to keep them in order to prevent the reindex on each
deploy?
--
Posted via http://www.ruby-forum.com/.
2006 Apr 25
0
Capistrano adding shared files
I''m finding the :before_task and :after_task facilities in Capistrano
very useful.
For example, I needed to add a shared directory to my system. All I had
to do was add a few lines to deploy.rb:
desc "Add shared usr_img directory to shared"
task :after_setup do
run <<-CMD
mkdir -p -m 775 #{shared_path}/user_img
CMD
end
desc "Link shared usr_img directory to public/usr_img"
task :after_update_code do
run <<-CMD
ln -nfs #{shared_path}/user_img #{release_path}/public/user_img
CMD
end
Whee!
--Al Evans
--
Posted via ht...
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