Skip to content

Instantly share code, notes, and snippets.

@anyelopetit
Last active September 8, 2020 20:25
Show Gist options
  • Save anyelopetit/7320fc8141554ea4b75ec88bb02f8132 to your computer and use it in GitHub Desktop.
Save anyelopetit/7320fc8141554ea4b75ec88bb02f8132 to your computer and use it in GitHub Desktop.
it does nothing, it just keeps waiting
cap staging doctor
Environment
Ruby ruby 2.6.5p114 (2019-10-01 revision 67812) [x86_64-linux]
Rubygems 3.0.8
Bundler 1.17.3
Command /home/starklord/.rvm/gems/ruby-2.6.5/bin/cap staging doctor
Gems
capistrano 3.14.1
airbrussh 1.4.0
rake 13.0.1
sshkit 1.21.0
net-ssh 6.1.0
capistrano-bundler 1.2.0 (update available)
capistrano-passenger 0.2.0
capistrano-rails 1.2.3 (update available)
capistrano-rbenv 2.1.0 (update available)
capistrano-sidekiq 0.10.0 (update available)
Variables
:application "appname"
:assets_prefix "assets"
:assets_roles [:web]
:branch "stage"
:bundle_bins ["gem", "rake", "rails", "sidekiq", "sidekiqctl"]
:bundle_flags "--deployment --quiet"
:bundle_path #<Pathname:/srv/apps/appname/shared/bundle>
:bundle_roles :all
:bundle_servers [#<Capistrano::Configuration::Server:0x000056187678d388 @keys=[], @local=false, @user="deploy", @hostname="159.89.109.107", @port=nil, @properties=#<Capistrano::Configuration::Server::Properties:0x000056187678ced8 @properties={}, @roles=#<Set: {:web, :app, :db}>>, @ssh_options={:forward_agent=>true, :auth_methods=>["publickey"]}>]
:bundle_without "development test"
:chruby_map_bins ["sidekiq", "sidekiqctl"]
:conditionally_migrate false
:default_env {:rbenv_root=>"/home/deploy/.rbenv", :rbenv_version=>"2.3.1"}
:default_stage "production"
:deploy_to "/srv/apps/appname"
:format :airbrussh
:git_environmental_variables {:git_askpass=>"/bin/echo", :git_ssh=>"/tmp/git-ssh-weclin-staging-starklord.sh"}
:git_max_concurrent_connections 10
:git_shallow_clone false
:git_wait_interval 0
:git_wrapper_path "/tmp/git-ssh-appname-staging-username.sh"
:keep_releases 4
:linked_dirs ["log", "tmp/pids", "tmp/cache", "tmp/sockets", "public/system", "public/uploads", "public/assets"]
:linked_files [".env", "config/database.yml", "config/secrets.yml", "config/redis.yml"]
:local_user "starklord"
:log_level :debug
:migration_role :db
:migration_servers #<Capistrano::Configuration::Server:0x000056187678d388 @keys=[], @local=false, @user="deploy", @hostname="159.89.109.107", @port=nil, @properties=#<Capistrano::Configuration::Server::Properties:0x000056187678ced8 @properties={}, @roles=#<Set: {:web, :app, :db}>>, @ssh_options={:forward_agent=>true, :auth_methods=>["publickey"]}>
:passenger_environment_variables {}
:passenger_in_path true
:passenger_restart_command "passenger-config restart-app"
:passenger_restart_limit 2
:passenger_restart_options "/srv/apps/weclin --ignore-app-not-running"
:passenger_restart_runner :sequence
:passenger_restart_wait 5
:passenger_restart_with_sudo false
:passenger_restart_with_touch true
:passenger_roles :app
:passenger_rvm_ruby_version nil
:pty false
:rails_env :staging
:rbenv_gemsets "appname-api"
:rbenv_map_bins ["rake", "gem", "bundle", "ruby", "rails", "sidekiq", "sidekiqctl"]
:rbenv_path "/home/deploy/.rbenv"
:rbenv_prefix "RBENV_VERSION=2.3.1"
:rbenv_roles :all
:rbenv_ruby "2.3.1"
:rbenv_ruby_dir "/home/deploy/.rbenv/versions/2.3.1"
:rbenv_type :user
:repo_url "git@bitbucket.org:username/app-name.git"
:rvm_map_bins ["sidekiq", "sidekiqctl"]
:sidekiq_config "config/sidekiq.yml"
:sidekiq_default_hooks true
:sidekiq_env :staging
:sidekiq_log "/srv/apps/appname/shared/log/sidekiq.log"
:sidekiq_options_per_process nil
:sidekiq_pid "/srv/apps/appname/shared/tmp/pids/sidekiq.pid"
:sidekiq_processes 1
:sidekiq_role :app
:sidekiq_timeout 10
:sidekiq_user nil
:stage :staging
:stages ["staging", "production"]
:tmp_dir "/tmp"
:use_sudo false
:default_stage is not a recognized Capistrano setting (/home/username/.rvm/rubies/ruby-2.6.5/lib/ruby/2.6.0/delegate.rb:83)
:linked_files is not a recognized Capistrano setting (/home/username/.rvm/rubies/ruby-2.6.5/lib/ruby/2.6.0/delegate.rb:83)
:passenger_restart_with_touch is not a recognized Capistrano setting (/home/username/.rvm/rubies/ruby-2.6.5/lib/ruby/2.6.0/delegate.rb:83)
:rbenv_gemsets is not a recognized Capistrano setting (/home/username/.rvm/rubies/ruby-2.6.5/lib/ruby/2.6.0/delegate.rb:83)
:rbenv_type is not a recognized Capistrano setting (/home/username/.rvm/rubies/ruby-2.6.5/lib/ruby/2.6.0/delegate.rb:83)
:sidekiq_config is not a recognized Capistrano setting (/home/username/.rvm/rubies/ruby-2.6.5/lib/ruby/2.6.0/delegate.rb:83)
:stages is not a recognized Capistrano setting (/home/username/.rvm/rubies/ruby-2.6.5/lib/ruby/2.6.0/delegate.rb:83)
:use_sudo is not a recognized Capistrano setting (/home/username/.rvm/rubies/ruby-2.6.5/lib/ruby/2.6.0/delegate.rb:83)
Servers (1)
deploy@159.89.109.107 [:web, :app, :db]
# Load DSL and set up stages
require "capistrano/setup"
# Include default deployment tasks
require "capistrano/deploy"
# Load the SCM plugin appropriate to your project:
#
# require "capistrano/scm/hg"
# install_plugin Capistrano::SCM::Hg
# or
# require "capistrano/scm/svn"
# install_plugin Capistrano::SCM::Svn
# or
require "capistrano/scm/git"
install_plugin Capistrano::SCM::Git
# Include tasks from other gems included in your Gemfile
#
# For documentation on these, see for example:
#
# https://github.com/capistrano/rvm
# https://github.com/capistrano/rbenv
# https://github.com/capistrano/chruby
# https://github.com/capistrano/bundler
# https://github.com/capistrano/rails
# https://github.com/capistrano/passenger
#
# require "capistrano/rvm"
require "capistrano/rbenv"
# require "capistrano/chruby"
require "capistrano/bundler"
require "capistrano/rails/assets"
require "capistrano/rails/migrations"
require "capistrano/passenger"
require 'capistrano/sidekiq'
# Load custom tasks from `lib/capistrano/tasks` if you have any defined
Dir.glob("lib/capistrano/tasks/*.rake").each { |r| import r }
# config valid only for current version of Capistrano
lock "3.8.0"
set :passenger_restart_with_touch, true
set :rbenv_path, '/home/deploy/.rbenv'
#set :bundle_path, '/root/.rbenv/versions/2.3.1/bin/'
set :stages, %w(staging production)
set :default_stage, "production"
set :application, "repo-name"
set :repo_url, "git@bitbucket.org:username/repo-name.git"
# Default deploy_to directory is /var/www/my_app_name
set :deploy_to, "/srv/apps/#{fetch(:application)}"
set :log_level, :debug
set :rbenv_type, :user
set :use_sudo, false
set :rbenv_ruby, '2.3.1'
set :rbenv_gemsets, File.read('.rbenv-gemsets').strip
set :rbenv_prefix, "RBENV_VERSION=#{fetch(:rbenv_ruby)}"
set :sidekiq_config, 'config/sidekiq.yml'
set :linked_files, %w{.env config/database.yml config/secrets.yml config/redis.yml }
set :linked_dirs, %w{log tmp/pids tmp/cache tmp/sockets public/system public/uploads}
# Default value for default_env is {}
#set :default_env, { path: "/opt/ruby/bin:$PATH" }
# Default value for keep_releases is 5
set :keep_releases, 4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment