Skip to content

Instantly share code, notes, and snippets.

@carlzulauf
Last active December 10, 2016 01:59
Show Gist options
  • Save carlzulauf/5e46802934603d0136ab0993da64d312 to your computer and use it in GitHub Desktop.
Save carlzulauf/5e46802934603d0136ab0993da64d312 to your computer and use it in GitHub Desktop.
Jekyll Capistrano Config
require "capistrano/setup"
require "capistrano/deploy"
require 'capistrano/chruby'
require 'capistrano/bundler'
lock '3.6.1'
set :application, 'blog'
set :repo_url, 'git@linkleaf.com:blog.linkleaf.com'
set :deploy_to, '/var/www/blog'
set :chruby_ruby, 'ruby-2.3.3'
set :chruby_map_bins, fetch(:chruby_map_bins) + %w(jekyll)
set :bundle_bins, fetch(:bundle_bins) + %w(jekyll)
desc 'Build the website using Jekyll'
task :build do
on roles(:web) do
within release_path do
execute :jekyll, 'build', '-d public'
end
end
end
after "deploy:updated", "build"
gem "capistrano"
gem "capistrano-chruby"
server "blog.linkleaf.com", user: "deploy", roles: %w{web}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment