Created
April 17, 2015 13:15
-
-
Save soullivaneuh/5cfa8aa23764ec211259 to your computer and use it in GitHub Desktop.
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
namespace :config do | |
desc "Download config file" | |
task :download do | |
on roles(:app), in: :parallel do |server| | |
system "scp #{server.user}@#{server.hostname}:#{shared_path}/config/config.php config/config.php" | |
end | |
end | |
desc "Upload and setup config file" | |
task :upload do | |
on roles(:app), in: :parallel do |server| | |
system "scp config/config.php #{server.user}@#{server.hostname}:#{shared_path}/config/config.php" | |
end | |
invoke 'config:setup' | |
end | |
desc "Setup config file" | |
task :setup do | |
on roles(:app) do | |
execute :cp, "#{shared_path}/config/config.php #{release_path}/phplist/public_html/lists/config" | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment