Skip to content

Instantly share code, notes, and snippets.

@i-arindam
Created September 23, 2014 03:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save i-arindam/18fbf79da5adef10baaf to your computer and use it in GitHub Desktop.
Save i-arindam/18fbf79da5adef10baaf to your computer and use it in GitHub Desktop.
Setup files
# Load DSL and Setup Up Stages
require 'capistrano/setup'
# Includes default deployment tasks
require 'capistrano/deploy'
require 'capistrano/rails'
require 'rvm1/capistrano3'
# Loads custom tasks from `lib/capistrano/tasks' if you have any defined.
Dir.glob('lib/capistrano/tasks/*.rake').each { |r| import r }
# config valid only for Capistrano 3.1
require 'capistrano/bundler'
require 'rvm/capistrano'
require 'capistrano3/unicorn'
lock '3.2.1'
set :application, 'domain_spam_checker'
set :repo_url, 'git@bitbucket.org:spamchecker/spam-checker.git'
set :scm_username, "i-arindam"
set :scm_password, "hu57l3r!am"
# rvm1/cap3 specific
set :rvm1_ruby_version, "2.1.2"
set :rvm_ruby_string,'ruby-2.1.2@prod'
set :deploy_to, "/home/deployer/#{fetch(:application)}"
set :format, :pretty
set :pty, true
set :user, "deployer"
set :deploy_via, :remote_cache
set :rails_env, "production"
before 'deploy', 'rvm1:install:gems' # install/update gems from Gemfile into gemset
namespace :deploy do
desc 'Restart application'
task :restart do
invoke 'unicorn:reload'
end
after :publishing, :restart
after :restart, :clear_cache do
end
end
source 'https://rubygems.org'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.1.5'
# Use mysql as the database for Active Record
gem 'mysql2'
# Use SCSS for stylesheets
gem 'sass-rails', '~> 4.0.3'
# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '>= 1.3.0'
# Use CoffeeScript for .js.coffee assets and views
# gem 'coffee-rails', '~> 4.0.0'
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
gem 'therubyracer', platforms: :ruby
# Use jquery as the JavaScript library
gem 'jquery-rails'
# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
# gem 'turbolinks'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
# gem 'jbuilder', '~> 2.0'
# bundle exec rake doc:rails generates the API under doc/api.
# gem 'sdoc', '~> 0.4.0', group: :doc
gem 'haml'
gem 'haml-rails'
gem 'httparty'
# Use ActiveModel has_secure_password
gem 'bcrypt', '~> 3.1.7'
# Use unicorn as the app server
gem 'unicorn'
# Use Capistrano for deployment
gem 'capistrano-rails', group: :development
gem 'rvm-capistrano'
gem 'capistrano3-unicorn', group: :development
gem 'rvm1-capistrano3', require: false
# Use debugger
gem 'debugger', group: [:development, :test]
gem 'annotate', group: :development
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment