Skip to content

Instantly share code, notes, and snippets.

@pjkelly
Created May 14, 2015 18:08
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 pjkelly/cb4ab39aea9cc9a18a4a to your computer and use it in GitHub Desktop.
Save pjkelly/cb4ab39aea9cc9a18a4a to your computer and use it in GitHub Desktop.
Copy a local file to server w/ Cap 3
desc "Copy a file"
task :copy do
on roles(:web) do |host|
# localfile.html would be in the root of your repo in this case.
upload! 'localfile.html', current_path.join('public/localfile.html')
execute :chmod, '775', current_path.join('public/localfile.html')
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment