Retrospring/config/deploy.rb

49 lines
1.6 KiB
Ruby
Raw Normal View History

2017-03-29 13:00:47 -07:00
# config valid only for current version of Capistrano
2017-03-29 13:10:22 -07:00
lock "3.8.0"
2017-03-29 13:00:47 -07:00
set :application, "retrospring"
set :repo_url, "git@git.rrerr.net:nilsding/retrospring.git"
# Default branch is :master
ask :branch, `git rev-parse --abbrev-ref HEAD`.chomp
# Default deploy_to directory is /var/www/my_app_name
set :deploy_to, "/home/justask/apps/retrospring"
2017-03-29 13:00:47 -07:00
# Default value for :format is :airbrussh.
# set :format, :airbrussh
# You can configure the Airbrussh format using :format_options.
# These are the defaults.
# set :format_options, command_output: true, log_file: "log/capistrano.log", color: :auto, truncate: :auto
# Default value for :pty is false
# set :pty, true
# Default value for :linked_files is []
2017-06-17 13:49:19 -07:00
append :linked_files, "config/database.yml", "config/justask.yml", "config/secrets.yml", "config/unicorn.rb",
"config/newrelic.yml", "config/initializers/devise.rb"
2017-03-29 13:00:47 -07:00
# Default value for linked_dirs is []
2017-03-29 13:06:43 -07:00
append :linked_dirs, "log", "tmp/pids", "tmp/cache", "tmp/sockets", "public/uploads", "public/system", "public/exports"
2017-03-29 13:00:47 -07:00
# Default value for default_env is {}
# set :default_env, { path: "/opt/ruby/bin:$PATH" }
# Default value for keep_releases is 5
# set :keep_releases, 5
# Ruby version / RVM
set :rvm1_ruby_version, '2.3.3@retrospring'
2017-03-29 14:01:06 -07:00
# Rollbar
set :rollbar_token, '35f65946f562414da66d0d48073f5290' # TODO: before publishing this repo (again) remove this token
set :rollbar_env, Proc.new { fetch :stage }
set :rollbar_role, Proc.new { :app }
2017-03-31 13:59:49 -07:00
# Create JS i18n files before precompiling assets
before 'deploy:assets:precompile', 'deploy:i18n_js'
2017-03-29 13:00:47 -07:00
# Restart the app server after successful deploy
after 'deploy:cleanup', 'deploy:restart'