Skip to content

Instantly share code, notes, and snippets.

@manuelmeurer
Created June 17, 2010 13:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save manuelmeurer/442090 to your computer and use it in GitHub Desktop.
Save manuelmeurer/442090 to your computer and use it in GitHub Desktop.
set :shared_files, %w(config/database.yml config/app_config.yml public/sitemap_index.xml)
namespace :deploy do
desc 'Symlink shared configs and folders on each release.'
task :symlink_shared do
global_shared_files.each do |shared_file|
run "ln -nfs #{shared_path}/#{shared_file} #{release_path}/#{shared_file}"
end
end
end
after 'deploy:update_code', 'deploy:symlink_shared'
@manuelmeurer
Copy link
Author

shared_files kann auch Verzeichnisse enthalten

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment