Created
April 18, 2018 13:39
-
-
Save pmeinhardt/2ca7a906fc82d6e0114d2d3932b0effe to your computer and use it in GitHub Desktop.
capistrano config for geordi defect
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'capistrano/setup' | |
require 'capistrano/deploy' | |
require 'capistrano/scm/git' | |
install_plugin Capistrano::SCM::Git | |
require 'capistrano/bundler' | |
require 'capistrano/yarn' | |
require 'capistrano/rails/assets' | |
require 'capistrano/rails/migrations' | |
require 'capistrano/passenger' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# config/deploy.rb | |
lock '~> 3.10.1' | |
set :application, 'example' | |
set :repo_url, '[email protected]:xyz/example.git' | |
append :linked_files, 'config/database.yml', 'config/secrets.yml' | |
append :linked_dirs, 'log', 'tmp', 'storage', 'public/system' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# config/deploy/staging.rb | |
set :branch, 'staging' | |
set :rails_env, 'staging' | |
set :deploy_to, '/var/www/project_s' | |
server 'c1.example.org', | |
user: 'deploy-s', | |
roles: %w[app web cron db], | |
primary: true | |
server 'c2.example.org', | |
user: 'deploy-s', | |
roles: %w[app web] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment