-
-
Save stevenhaddox/55b3567015782e63635c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'capistrano/setup' | |
require 'capistrano/deploy' | |
require 'capistrano/rvm' | |
require 'capistrano/rails' | |
require "capistrano-resque" | |
Dir.glob('lib/capistrano/tasks/*.cap').each { |r| import r } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace :deploy do | |
# working tasks | |
after :published, "resque:restart" | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source 'https://rubygems.org' | |
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' | |
gem 'rails', '4.1.0' | |
gem 'pg' | |
gem 'devise' | |
gem 'simple_form' | |
gem 'font-awesome-rails' | |
gem 'toastr-rails' | |
gem 'haml' | |
gem 'haml-rails' | |
gem 'draper', '~> 1.3' | |
gem 'paperclip', '~> 4.1' | |
gem 'bootstrap-datepicker-rails', '~> 1.3.0.2' | |
gem 'balanced' | |
gem 'geokit-rails' | |
gem 'rack-mini-profiler', require: false | |
gem 'remotipart', '~> 1.2' | |
gem 'resque' | |
gem 'resque_mailer' | |
gem 'rest-client' | |
gem 'will_paginate', '~> 3.0' | |
gem 'user_impersonate2', :require => 'user_impersonate' | |
gem 'logstasher' | |
group :development, :staging do | |
gem 'railroady' | |
end | |
gem 'sass-rails', '~> 4.0.0' | |
gem 'uglifier', '>= 1.3.0' | |
gem 'coffee-rails', '~> 4.0.0' | |
gem 'jquery-rails' | |
gem 'turbolinks' | |
gem 'jbuilder', '~> 1.2' | |
group :doc do | |
# bundle exec rake doc:rails generates the API under doc/api. | |
gem 'sdoc', require: false | |
end | |
# Use Capistrano for deployment | |
gem 'capistrano', group: :development, git: 'https://github.com/capistrano/capistrano.git' | |
gem 'sshkit', git: 'https://github.com/capistrano/sshkit.git' | |
gem 'capistrano-rails' | |
# gem 'capistrano-bundler', '~> 1.1.2' | |
gem 'capistrano-rvm' | |
gem "capistrano-resque", "~> 0.2.1", require: false | |
# Use debugger | |
# gem 'debugger', group: [:development, :test] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set :stage, :staging | |
server '0.0.0.0', user: 'deploymentuser', roles: %w{web app db}, primary: true | |
# some environment-specific business for capistrano-resque | |
role :resque_worker, "WHAT GOES HERE??" | |
# role :resque_scheduler, "web" | |
set :workers, { "mailer" => 1, "event" => 1 } | |
set :resque_environment_task, true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment