vendredi 22 mai 2015

move public folder after deployment rails

I would like move /public/recipes folder with all recipes and folders inside recipes folder, from the old release version to current version after deployment with capistrano.

This folder is removed when new current version of the app is deployed. I do not loss this folder. Something like

task :move_recipes do
  run ("mv #{latest_release}/public/recipes/ #{release_path}/public")
end

Aucun commentaire:

Enregistrer un commentaire