Skip to content

Instantly share code, notes, and snippets.

@chroju
Created April 12, 2014 11:19
Show Gist options
  • Save chroju/10530780 to your computer and use it in GitHub Desktop.
Save chroju/10530780 to your computer and use it in GitHub Desktop.
汎用的Capfile
# vim: set ft=ruby :
# Load DSL and Setup Up stages
require 'capistrano/setup'
# Inculeds default deployment tasks
require 'capistrano/deploy'
# Bundler and Rails
require 'capistrano/bundler'
require 'capistrano/rails/migrations'
require 'capistrano/rails/assets'
# rbenv
require 'capistrano/rbenv'
set :rbenv_type, :user # or :system
set :rbenv_ruby, '1.9.3-p545'
# Loads custom tasks from 'lib/capistrano/tasks' if you have any defined.
Dir.glob('lib/capistrano/tasks/*.cap').each { |r| import r }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment