Created
June 13, 2014 08:48
-
-
Save remyzv/1ffd0bc8a0e753ef74e6 to your computer and use it in GitHub Desktop.
Capistrano cmd lines
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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