Created
June 8, 2013 06:17
-
-
Save codebrane/5734250 to your computer and use it in GitHub Desktop.
lftp configuration for octopress
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
ftp_user = "username" | |
ftp_server = "codebrane.com" | |
ftp_target = "/remote/path/to/blogocto" | |
deploy_default = "lftp" | |
desc "Deploy website via LFTP" | |
task :lftp do | |
puts "## Deploying website via LFTP" | |
ok_failed system("lftp -e 'set ftp:ssl-allow off; set ssl:verify-certificate no; mirror -R --ignore-time --delete -v #{public_dir} #{ftp_target}; bye' -u #{ftp_user} #{ftp_server}") | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment