removed deployment-related stuff
This commit is contained in:
parent
47cbbed719
commit
c357036047
24
Capfile
24
Capfile
|
@ -1,24 +0,0 @@
|
||||||
# Load DSL and set up stages
|
|
||||||
require 'capistrano/setup'
|
|
||||||
|
|
||||||
# Include default deployment tasks
|
|
||||||
require 'capistrano/deploy'
|
|
||||||
|
|
||||||
# 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/bundler'
|
|
||||||
require 'capistrano/rails'
|
|
||||||
require 'capistrano/console'
|
|
||||||
|
|
||||||
# Load custom tasks from `lib/capistrano/tasks' if you have any defined
|
|
||||||
Dir.glob('lib/capistrano/tasks/*.rake').each { |r| import r }
|
|
|
@ -1,31 +0,0 @@
|
||||||
# config valid only for current version of Capistrano
|
|
||||||
lock '3.3.5'
|
|
||||||
|
|
||||||
set :application, 'justask'
|
|
||||||
set :repo_url, 'git@git.rrerr.net:justask/justask.git'
|
|
||||||
ask :branch, :master
|
|
||||||
set :deploy_to, '/home/justask/cap/'
|
|
||||||
set :scm, :git
|
|
||||||
set :format, :pretty
|
|
||||||
set :log_level, :debug
|
|
||||||
|
|
||||||
# RVM
|
|
||||||
set :rvm_type, :user
|
|
||||||
set :rvm_ruby_version, '2.0.0'
|
|
||||||
|
|
||||||
# Rails
|
|
||||||
set :conditionally_migrate, true
|
|
||||||
|
|
||||||
namespace :deploy do
|
|
||||||
|
|
||||||
after :updated do
|
|
||||||
|
|
||||||
end
|
|
||||||
|
|
||||||
after :restart, :clear_cache do
|
|
||||||
on roles(:web), in: :groups, limit: 3, wait: 10 do
|
|
||||||
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
end
|
|
|
@ -1,7 +0,0 @@
|
||||||
server 'rrerr.net', user: 'justask', roles: %w{web app}
|
|
||||||
|
|
||||||
set :ssh_options, {
|
|
||||||
keys: %w(~/.ssh/id_rsa),
|
|
||||||
forward_agent: false,
|
|
||||||
auth_methods: %w(publickey)
|
|
||||||
}
|
|
|
@ -1,45 +0,0 @@
|
||||||
# Simple Role Syntax
|
|
||||||
# ==================
|
|
||||||
# Supports bulk-adding hosts to roles, the primary server in each group
|
|
||||||
# is considered to be the first unless any hosts have the primary
|
|
||||||
# property set. Don't declare `role :all`, it's a meta role.
|
|
||||||
|
|
||||||
role :app, %w{deploy@example.com}
|
|
||||||
role :web, %w{deploy@example.com}
|
|
||||||
role :db, %w{deploy@example.com}
|
|
||||||
|
|
||||||
|
|
||||||
# Extended Server Syntax
|
|
||||||
# ======================
|
|
||||||
# This can be used to drop a more detailed server definition into the
|
|
||||||
# server list. The second argument is a, or duck-types, Hash and is
|
|
||||||
# used to set extended properties on the server.
|
|
||||||
|
|
||||||
server 'example.com', user: 'deploy', roles: %w{web app}, my_property: :my_value
|
|
||||||
|
|
||||||
|
|
||||||
# Custom SSH Options
|
|
||||||
# ==================
|
|
||||||
# You may pass any option but keep in mind that net/ssh understands a
|
|
||||||
# limited set of options, consult[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)
|
|
||||||
# }
|
|
||||||
#
|
|
||||||
# And/or per server (overrides global)
|
|
||||||
# ------------------------------------
|
|
||||||
# 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