Skip to content

Instantly share code, notes, and snippets.

@remyzv
Created June 13, 2014 08:48
Show Gist options
  • Save remyzv/1ffd0bc8a0e753ef74e6 to your computer and use it in GitHub Desktop.
Save remyzv/1ffd0bc8a0e753ef74e6 to your computer and use it in GitHub Desktop.
Capistrano cmd lines
desc "Database link"
task :bd_link do
on roles(:all) do |host|
within release_path do
execute :ln, '-s', "#{shared_path}/database.php", 'app/Config/database.php'
execute :rm, '-fr', 'app/Config/core.php'
execute :ln, '-s', "#{shared_path}/core.php", 'app/Config/core.php'
execute :rm, '-fr', 'app/webroot/files'
execute :ln, '-s', "#{shared_path}/files", 'app/webroot/files'
# Compass
execute :rm, '-fr', 'app/webroot/config.rb'
execute :ln, '-s', "#{shared_path}/config.rb", 'app/webroot/config.rb'
execute :compass, 'compile', 'app/webroot/'
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment