Skip to content

Instantly share code, notes, and snippets.

@epintos
Created July 11, 2015 18:41
Show Gist options
  • Save epintos/cc7f0913893738f4c549 to your computer and use it in GitHub Desktop.
Save epintos/cc7f0913893738f4c549 to your computer and use it in GitHub Desktop.
Ruby on Rails deploy with Capistrano 3
require 'capistrano/setup'
require 'capistrano/deploy'
require 'capistrano/rbenv'
require 'capistrano/rbenv_install'
require 'capistrano/bundler'
require 'capistrano/rails/assets'
require 'capistrano/rails/migrations'
require 'capistrano/nginx_unicorn'
require 'capistrano/sidekiq'
require 'whenever/capistrano'
require 'capistrano/rails/console'
require 'capistrano/postgresql'
# Load custom tasks from `lib/capistrano/tasks' if you have any defined
Dir.glob('lib/capistrano/tasks/*.rake').each { |r| import r }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment