Skip to content
This repository was archived by the owner on Sep 25, 2019. It is now read-only.

Commit e67cb45

Browse files
committed
Use capistrano for deploys
1 parent 9d7dc04 commit e67cb45

File tree

9 files changed

+224
-273
lines changed

9 files changed

+224
-273
lines changed

.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@
2727
/config/initializers/devise.rb
2828
/config/facebook.yml
2929
/.idea/
30-
/config/deploy.rb
31-
/Capfile
3230

3331
/config/newrelic.yml
3432

@@ -37,7 +35,6 @@
3735
.ruby-version
3836
.ruby-env
3937

40-
/config/database.yml
4138
/config/puma.rb
4239

4340
# Ignore 1337 secrets

Capfile

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Load DSL and Setup Up Stages
2+
require 'capistrano/setup'
3+
4+
# Includes default deployment tasks
5+
require 'capistrano/deploy'
6+
7+
# Include bundler related tasks
8+
require 'capistrano/bundler'
9+
10+
# Includes tasks from other gems included in your Gemfile
11+
#
12+
# For documentation on these, see for example:
13+
#
14+
# https://github.com/capistrano/rvm
15+
# https://github.com/capistrano/rbenv
16+
# https://github.com/capistrano/chruby
17+
# https://github.com/capistrano/bundler
18+
# https://github.com/capistrano/rails
19+
#
20+
require 'capistrano/rvm'
21+
require 'capistrano/rails/assets'
22+
require 'capistrano/rails/migrations'
23+
require 'capistrano/puma'
24+
25+
# Loads custom tasks from `lib/capistrano/tasks' if you have any defined.
26+
Dir.glob('lib/capistrano/tasks/*.rake').each { |r| import r }

Gemfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,12 @@ gem 'rollbar'
110110
# Use unicorn as the app server
111111
# gem 'unicorn'
112112

113-
#Deploy with Capistrano
113+
# Deploy with Capistrano
114114
gem 'capistrano'
115+
gem 'capistrano-bundler'
116+
gem 'capistrano-rvm'
117+
gem 'capistrano-rails'
118+
gem 'capistrano3-puma'
115119

116120
# To use debugger
117121
# gem 'debugger'

0 commit comments

Comments
 (0)