Skip to content

Instantly share code, notes, and snippets.

@soullivaneuh
Created April 17, 2015 13:15
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 soullivaneuh/5cfa8aa23764ec211259 to your computer and use it in GitHub Desktop.
Save soullivaneuh/5cfa8aa23764ec211259 to your computer and use it in GitHub Desktop.
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