mirror of
https://github.com/chenasraf/snpr.git
synced 2026-05-17 17:38:07 +00:00
* Passwords now need to be 8 characters long (new default in authlogic). * To login to the Sidekiq web interface, log in to opensnp.org, if you have the `admin` flag set, you will find it at the usual place. * I finally found out why Rubocop didn't complain about the frozen string literal pragma missing and added all of them. * Rubocop complained about keyword arguments, which is only relevant for Rails 5, so I disabled the cop. * I removed the `inherit_from: .rubocop_todo.yml` from `.rubocop.yml`, so Hound does complain about **all** the issues. I also added a few tasks for running Rubocop.
34 lines
921 B
Ruby
34 lines
921 B
Ruby
# frozen_string_literal: true
|
|
set :application, 'snpr'
|
|
set :repository, "git://github.com/gedankenstuecke/#{application}.git"
|
|
set :scm, :git
|
|
set :user, application
|
|
set :rails_env, "production"
|
|
set :use_sudo, false
|
|
set :default_stage, "production"
|
|
set :stages, %w(production staging vagrant)
|
|
|
|
require 'capistrano/ext/multistage'
|
|
require 'bundler/capistrano'
|
|
require 'rvm/capistrano'
|
|
|
|
set :whenever_environment, defer { stage }
|
|
set :whenever_command, "bundle exec whenever"
|
|
require "whenever/capistrano"
|
|
|
|
set :rvm_ruby_string, "ruby-2.0.0-p247"
|
|
set :rvm_type, :system
|
|
|
|
load 'lib/capistrano/helpers'
|
|
load 'lib/capistrano/tasks/base'
|
|
load 'lib/capistrano/tasks/assets'
|
|
load 'lib/capistrano/tasks/passenger'
|
|
load 'lib/capistrano/tasks/sidekiq'
|
|
|
|
after 'deploy:update', 'deploy:migrate'
|
|
after 'deploy:restart', 'passenger:restart'
|
|
after 'deploy:restart', 'sidekiq:restart'
|
|
|
|
require './config/boot'
|
|
require 'airbrake/capistrano'
|