# # This file can be used to push the latest crawler code and updates file to # the web server. # role :app, "projectwishbone.com" set :deploy_to, "/home/wishbone/projectwishbone.com/current/public" set :user, "wishbone" set :password, "have8jake" set :latest_version, "Paglo Crawler 1.0.48.0.msi" task :upload_installer do put File.read("#{latest_version}"), "#{deploy_to}/#{latest_version}" put File.read("updates.txt"), "#{deploy_to}/updates.txt" run "chmod a+r #{deploy_to}/updates.txt \"#{deploy_to}/#{latest_version}\"" # Force the server to notice the file change. run "touch #{deploy_to}/updates.txt" end