Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove Capistrano #521

Merged
merged 1 commit into from
Oct 28, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,6 @@ group :development do

# Hide assets requests in log
gem 'quiet_assets'

# Deploy with Capistrano
gem 'capistrano', '~> 3.2.0', require: false
gem 'capistrano-rvm', require: false
gem 'capistrano-bundler', '>= 1.1.0', require: false
gem 'capistrano-rails', require: false
end

group :development, :test do
Expand Down
25 changes: 1 addition & 24 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -104,19 +104,6 @@ GEM
activesupport (>= 3.0.0)
uniform_notifier (~> 1.10.0)
callsite (0.0.11)
capistrano (3.2.1)
i18n
rake (>= 10.0.0)
sshkit (~> 1.3)
capistrano-bundler (1.3.0)
capistrano (~> 3.1)
sshkit (~> 1.2)
capistrano-rails (1.3.0)
capistrano (~> 3.1)
capistrano-bundler (~> 1.1)
capistrano-rvm (0.1.2)
capistrano (~> 3.0)
sshkit (~> 1.2)
capybara (2.13.0)
addressable
mime-types (>= 1.16)
Expand Down Expand Up @@ -266,9 +253,6 @@ GEM
mono_logger (1.1.0)
multi_json (1.12.2)
mysql2 (0.4.9)
net-scp (1.2.1)
net-ssh (>= 2.6.5)
net-ssh (4.2.0)
nokogiri (1.8.1)
mini_portile2 (~> 2.3.0)
pdf-core (0.7.0)
Expand Down Expand Up @@ -446,9 +430,6 @@ GEM
activesupport (>= 4.0)
sprockets (>= 3.0.0)
sqlite3 (1.3.13)
sshkit (1.14.0)
net-scp (>= 1.1.2)
net-ssh (>= 2.8.0)
term-ansicolor (1.6.0)
tins (~> 1.0)
therubyracer (0.12.3)
Expand Down Expand Up @@ -507,10 +488,6 @@ DEPENDENCIES
binding_of_caller
bootstrap-datepicker-rails
bullet
capistrano (~> 3.2.0)
capistrano-bundler (>= 1.1.0)
capistrano-rails
capistrano-rvm
capybara
capybara-webkit
connection_pool
Expand Down Expand Up @@ -578,4 +555,4 @@ DEPENDENCIES
whenever

BUNDLED WITH
1.11.2
1.15.4
1 change: 0 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#!/usr/bin/env rake
# Add your own tasks in files placed in lib/tasks ending in .rake,
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.

require File.expand_path('../config/application', __FILE__)
require 'rake'
Expand Down
16 changes: 0 additions & 16 deletions bin/cap

This file was deleted.

16 changes: 0 additions & 16 deletions bin/capify

This file was deleted.

48 changes: 0 additions & 48 deletions config/deploy.rb.SAMPLE

This file was deleted.

37 changes: 0 additions & 37 deletions doc/DEPLOYMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,40 +58,3 @@ In practice, you'd probably want to use docker-compose. If you know Docker well
you'll have no problem to set this up. For inspiration, look at the
[foodcoops.net production setup](https://github.com/foodcoops/foodcoops.net).


## Capistrano

### Setup

1. Initialise your [Capistrano](http://capistranorb.com/) setup

bundle exec cap install
sed -i 's|^# \(require.*rails.*\)|\1|' Capfile
cp config/deploy.rb.SAMPLE config/deploy.rb

When you're using [RVM](http://rvm.io/) on the server you may want to
uncomment the corresponding line in `Capfile`.

2. Adapt your configuration in `config/deploy.rb` and `config/deploy/*.rb`


### Deploy

On your first deploy you should run (choose either staging or production)

bundle exec cap staging deploy:check

This will fail, which is ok, because there is no configuration yet. On your
server, there is a directory `shared/config` for each installation, which
contains the configuration. Create `database.yml`, `app_config.yml` and
`initializers/secret_token.rb` and try again.
(See `lib/capistrano/tasks/deploy_initial.cap` for a way to automate this.)

Deploy to staging

bundle exec cap staging deploy

Deploy to production

bundle exec cap production deploy

113 changes: 0 additions & 113 deletions lib/capistrano/tasks/deploy_initial.cap

This file was deleted.

51 changes: 0 additions & 51 deletions lib/capistrano/tasks/plugins.cap

This file was deleted.

27 changes: 0 additions & 27 deletions lib/capistrano/tasks/resque.cap

This file was deleted.