Sha256: 80ca167a358b2b9f77bfbad6c3e0ad3671848fde5acf8cec6972e66cc297e4dc

Contents?: true

Size: 1.4 KB

Versions: 80

Compression:

Stored size: 1.4 KB

Contents

set :user, "<%= app_name.downcase %>"
set :application, '<%= app_name.downcase %>'
set :scm, :git
set :repo_url, 'git@rscz.ru:rocket-science/<%= app_name.downcase %>.git'

set :branch, ENV["REVISION"] || "master"

set :deploy_to, "<%= deploy_to %>"

# require 'hipchat/capistrano'
# set :hipchat_token, ""
# set :hipchat_room_name, "<%= app_name %>"
# set :hipchat_announce, false

set :rvm_type, :user
set :rvm_ruby_version, "2.2.0@#{fetch :application}"
set :use_sudo, false

set :keep_releases, 20

set :linked_files, %w{config/mongoid.yml config/secrets.yml}
set :linked_dirs, %w{log tmp vendor/bundle public/assets public/system public/uploads public/ckeditor_assets public/sitemap}

namespace :db do
  desc "Create the indexes defined on your mongoid models"
  task :create_mongoid_indexes do
    on roles(:app) do
      execute :rake, "db:mongoid:create_indexes"
    end
  end
end

namespace :deploy do
  task :restart do
  end
  desc "Update the crontab"
  task :update_crontab do
    on roles(:app) do
      execute "cd #{release_path}; #{fetch(:tmp_dir)}/#{fetch :application}/rvm-auto.sh . bundle exec whenever --update-crontab #{fetch :user} --set \'environment=#{fetch :stage}&current_path=#{release_path}\'; true"
    end
  end
end

after 'deploy:publishing', 'deploy:restart'
after 'deploy:restart', 'unicorn:duplicate' 
#before "deploy:update_crontab", 'rvm1:hook'
#after "deploy:restart", "deploy:update_crontab"

Version data entries

80 entries across 80 versions & 2 rubygems

Version Path
rocket_cms-0.18.0 lib/generators/rocket_cms/templates/deploy.erb
rocket_cms-0.17.2 lib/generators/rocket_cms/templates/deploy.erb
rocket_cms-0.17.1 lib/generators/rocket_cms/templates/deploy.erb
rocket_cms-0.17.0 lib/generators/rocket_cms/templates/deploy.erb
rocket_cms-0.16.1 lib/generators/rocket_cms/templates/deploy.erb
rocket_cms-0.16.0 lib/generators/rocket_cms/templates/deploy.erb
rocket_cms-0.15.5 lib/generators/rocket_cms/templates/deploy.erb
rocket_cms-0.15.4 lib/generators/rocket_cms/templates/deploy.erb
rocket_cms-0.15.3 lib/generators/rocket_cms/templates/deploy.erb
rocket_cms-0.15.2 lib/generators/rocket_cms/templates/deploy.erb
rocket_cms-0.15.1 lib/generators/rocket_cms/templates/deploy.erb
rocket_cms-0.15.0 lib/generators/rocket_cms/templates/deploy.erb
rocket_cms-0.14.0 lib/generators/rocket_cms/templates/deploy.erb
rocket_cms-0.13.6 lib/generators/rocket_cms/templates/deploy.erb
rocket_cms-0.13.5 lib/generators/rocket_cms/templates/deploy.erb
rocket_cms-0.13.4 lib/generators/rocket_cms/templates/deploy.erb
rocket_cms-0.13.3 lib/generators/rocket_cms/templates/deploy.erb
rocket_cms-0.13.2 lib/generators/rocket_cms/templates/deploy.erb
rocket_cms-0.13.1 lib/generators/rocket_cms/templates/deploy.erb
rocket_cms-0.13.0 lib/generators/rocket_cms/templates/deploy.erb