Latest Posts


Welcome to 4thlabs.com 2012-12-05

Welcome to this new version of 4thlabs.com, reconstructed with ruhoh, a wonderful static blog generator. Most of the time we use complicated tools for simple task. Ruhoh is a perfect answer for making little blog and website. Combined with a rake makefile for ftp deployement, the workflow is nearly perfect.

Here is the Rakefile for deploying on ftp with rake :

ftp_user       = "username"
ftp_server     = "ftp url"
ftp_target     = "/www"
ftp_source     = "compiled/"
deploy_default = "lftp"

desc "Deploy website via LFTP"
task :deploy do
  puts "## Deploying website via LFTP"
  system("lftp -e 'mirror -R --ignore-time -v #{ftp_source} #{ftp_target}; bye' -u #{ftp_user} #{ftp_server}")
end