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

Commit

Permalink
Use capistrano for deploys
Browse files Browse the repository at this point in the history
  • Loading branch information
jsyeo committed Apr 28, 2015
1 parent 9d7dc04 commit e67cb45
Show file tree
Hide file tree
Showing 9 changed files with 224 additions and 273 deletions.
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@
/config/initializers/devise.rb
/config/facebook.yml
/.idea/
/config/deploy.rb
/Capfile

/config/newrelic.yml

Expand All @@ -37,7 +35,6 @@
.ruby-version
.ruby-env

/config/database.yml
/config/puma.rb

# Ignore 1337 secrets
Expand Down
26 changes: 26 additions & 0 deletions Capfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Load DSL and Setup Up Stages
require 'capistrano/setup'

# Includes default deployment tasks
require 'capistrano/deploy'

# Include bundler related tasks
require 'capistrano/bundler'

# Includes 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
#
require 'capistrano/rvm'
require 'capistrano/rails/assets'
require 'capistrano/rails/migrations'
require 'capistrano/puma'

# Loads custom tasks from `lib/capistrano/tasks' if you have any defined.
Dir.glob('lib/capistrano/tasks/*.rake').each { |r| import r }
6 changes: 5 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,12 @@ gem 'rollbar'
# Use unicorn as the app server
# gem 'unicorn'

#Deploy with Capistrano
# Deploy with Capistrano
gem 'capistrano'
gem 'capistrano-bundler'
gem 'capistrano-rvm'
gem 'capistrano-rails'
gem 'capistrano3-puma'

# To use debugger
# gem 'debugger'
Loading

0 comments on commit e67cb45

Please sign in to comment.