debugging cap
This commit is contained in:
parent
33953445b7
commit
5afb77e2a7
16
Capfile
16
Capfile
@ -1,14 +1,14 @@
|
||||
# Load DSL and set up stages
|
||||
require 'capistrano/setup'
|
||||
require "capistrano/setup"
|
||||
|
||||
# Include default deployment tasks
|
||||
require 'capistrano/deploy'
|
||||
|
||||
require 'capistrano/rails'
|
||||
require 'capistrano/passenger'
|
||||
|
||||
# Load custom tasks from `lib/capistrano/tasks` if you have any defined
|
||||
Dir.glob('lib/capistrano/tasks/*.rake').each { |r| import r }
|
||||
require "capistrano/deploy"
|
||||
|
||||
require "capistrano/scm/git"
|
||||
install_plugin Capistrano::SCM::Git
|
||||
|
||||
# Load custom tasks from `lib/capistrano/tasks` if you have any defined
|
||||
Dir.glob("lib/capistrano/tasks/*.rake").each { |r| import r }
|
||||
|
||||
require 'capistrano/rails'
|
||||
require 'capistrano/passenger'
|
||||
|
@ -1,32 +1,21 @@
|
||||
# config valid only for current version of Capistrano
|
||||
lock '3.10.2'
|
||||
# config valid for current version and patch releases of Capistrano
|
||||
lock "~> 3.10.2"
|
||||
|
||||
set :application, 'ruby-s'
|
||||
set :repo_url, 'https://github.com/ruby-x/rubyx.github.com'
|
||||
set :application, "ruby-x"
|
||||
set :repo_url, "https://github.com/ruby-x/ruby-x.github.io.git"
|
||||
#set :repo_url, "git@github.com:ruby-x/ruby-x.github.io.git"
|
||||
|
||||
# Default deploy_to directory is /var/www/my_app_name
|
||||
set :deploy_to, '/var/www/vhosts/rubydesign/ruby-x.org'
|
||||
set :deploy_to, '/var/www/vhosts/rubydesign.fi/ruby-x.org'
|
||||
|
||||
# Default value for :linked_files is []
|
||||
set :linked_files, fetch(:linked_files, []).push('config/database.yml')
|
||||
#append :linked_files, "config/database.yml"
|
||||
|
||||
# Default value for linked_dirs is []
|
||||
# set :linked_dirs, fetch(:linked_dirs, []).push('log', 'tmp/pids', 'tmp/cache', 'tmp/sockets', 'vendor/bundle', 'public/system')
|
||||
append :linked_dirs, "log", "tmp/pids", "tmp/cache", "tmp/sockets", "public/system"
|
||||
|
||||
# Default value for default_env is {}
|
||||
# set :default_env, { path: "/opt/ruby/bin:$PATH" }
|
||||
|
||||
set :passenger_restart_command, 'passenger-config restart-app'
|
||||
|
||||
namespace :deploy do
|
||||
|
||||
after :restart, :clear_cache do
|
||||
on roles(:web), in: :groups, limit: 3, wait: 10 do
|
||||
# Here we can do anything such as:
|
||||
# within release_path do
|
||||
# execute :rake, 'cache:clear'
|
||||
# end
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
# Default value for local_user is ENV['USER']
|
||||
set :local_user, -> { 'rubydesign' }
|
||||
|
@ -4,5 +4,41 @@
|
||||
# You can define all roles on a single server, or split them:
|
||||
|
||||
server 'ruby-x.org', user: 'rubydesign', roles: %w{app db web}
|
||||
# server 'example.com', user: 'deploy', roles: %w{app web}, other_property: :other_value
|
||||
# server 'db.example.com', user: 'deploy', roles: %w{db}
|
||||
|
||||
|
||||
# Configuration
|
||||
# =============
|
||||
# You can set any configuration variable like in config/deploy.rb
|
||||
# These variables are then only loaded and set in this stage.
|
||||
# For available Capistrano configuration variables see the documentation page.
|
||||
# http://capistranorb.com/documentation/getting-started/configuration/
|
||||
# Feel free to add new variables to customise your setup.
|
||||
|
||||
|
||||
|
||||
# Custom SSH Options
|
||||
# ==================
|
||||
# You may pass any option but keep in mind that net/ssh understands a
|
||||
# limited set of options, consult the Net::SSH documentation.
|
||||
# http://net-ssh.github.io/net-ssh/classes/Net/SSH.html#method-c-start
|
||||
#
|
||||
# Global options
|
||||
# --------------
|
||||
# set :ssh_options, {
|
||||
# keys: %w(/home/rlisowski/.ssh/id_rsa),
|
||||
# forward_agent: false,
|
||||
# auth_methods: %w(password)
|
||||
# }
|
||||
#
|
||||
# The server-based syntax can be used to override options:
|
||||
# ------------------------------------
|
||||
# server "example.com",
|
||||
# user: "user_name",
|
||||
# roles: %w{web app},
|
||||
# ssh_options: {
|
||||
# user: "user_name", # overrides user setting above
|
||||
# keys: %w(/home/user_name/.ssh/id_rsa),
|
||||
# forward_agent: false,
|
||||
# auth_methods: %w(publickey password)
|
||||
# # password: "please use keys"
|
||||
# }
|
||||
|
Loading…
Reference in New Issue
Block a user