Skip to content

Instantly share code, notes, and snippets.

@d6rkaiz d6rkaiz/gist:880481
Created Mar 21, 2011

Embed
What would you like to do?
set :cron, false
(ENV["SINSAI_TO"]||"").split(/,/).each do |e|
case e
when "cronsv"
role :app,"ec2-175-41-222-1.ap-northeast-1.compute.amazonaws.com"
set :cron, true
end
end
before 'deploy:cronsetup' do
if :cron
upload("files/kmlcron.sh", "/tmp/", :via => :scp)
try_sudo "crontab < /tmp/kmlcron.sh"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.