1
0
Fork 0
mirror of https://github.com/capistrano/capistrano synced 2023-03-27 23:21:18 -04:00
capistrano/Rakefile

20 lines
468 B
Text
Raw Normal View History

2013-06-30 09:33:26 -04:00
require 'time'
require 'sshkit/dsl'
2013-06-30 09:33:26 -04:00
deploy_to = '/opt/sites/capistranorb_com'
release_timestamp = Time.now.utc.strftime("%Y%m%d%H%m%S")
desc "Build Jekyll Site And Sync With S3"
task :deploy do
sh "bundle exec jekyll build"
on 'harrow.io' do
2013-06-30 09:33:26 -04:00
upload! '_site/', deploy_to, recursive: true
within(deploy_to) do
execute :mv, '_site/', release_timestamp
execute :ln, '-snf', release_timestamp, 'public'
end
end
end
task :default => :deploy