diff --git a/Capfile b/Capfile deleted file mode 100644 index 6e64843e..00000000 --- a/Capfile +++ /dev/null @@ -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 } diff --git a/config/deploy.rb b/config/deploy.rb deleted file mode 100644 index 01f44e6d..00000000 --- a/config/deploy.rb +++ /dev/null @@ -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 diff --git a/config/deploy/production.rb b/config/deploy/production.rb deleted file mode 100644 index d79adf18..00000000 --- a/config/deploy/production.rb +++ /dev/null @@ -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) -} diff --git a/config/deploy/staging.rb b/config/deploy/staging.rb deleted file mode 100644 index e664a6cd..00000000 --- a/config/deploy/staging.rb +++ /dev/null @@ -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' -# }