Sha256: d6a6d9901a70692aea0a0c06903baba6ec5e4069ca04c5fe20521673ddda07fd

Contents?: true

Size: 1.37 KB

Versions: 13

Compression:

Stored size: 1.37 KB

Contents

set :user, "<%= app_name.downcase %>"
set :application, '<%= app_name.downcase %>'
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.4.1@#{fetch :application}"
set :use_sudo, false

set :keep_releases, 20

<% if RocketCMS.mongoid? %>
set :linked_files, %w{config/mongoid.yml config/secrets.yml}
<% else %>
set :linked_files, %w{config/database.yml config/secrets.yml}
<% end %>
set :linked_dirs, %w{log tmp vendor/bundle public/assets public/system public/uploads public/ckeditor_assets public/sitemap}

Rake::Task["puma:check"].clear
Rake::Task["puma:config"].clear
namespace :puma do
  task :check do
  end
  task :config do
  end
end

namespace :deploy do
  desc "webpack"
  task :webpack do
    on roles(:app) do
      within release_path do
        with rails_env: fetch(:rails_env) do
          execute :rake, "webpack:compile"
        end
      end
    end
  end
end

after "deploy:updated", "deploy:webpack"

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

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
rocket_cms-0.19.8 lib/generators/rocket_cms/templates/deploy.erb
rocket_cms-0.19.7 lib/generators/rocket_cms/templates/deploy.erb
rocket_cms-0.19.6 lib/generators/rocket_cms/templates/deploy.erb
rocket_cms-0.19.4 lib/generators/rocket_cms/templates/deploy.erb
rocket_cms-0.19.3 lib/generators/rocket_cms/templates/deploy.erb
rocket_cms-0.19.2 lib/generators/rocket_cms/templates/deploy.erb
rocket_cms-0.19.1 lib/generators/rocket_cms/templates/deploy.erb
rocket_cms-0.19.0 lib/generators/rocket_cms/templates/deploy.erb
rocket_cms-0.18.5 lib/generators/rocket_cms/templates/deploy.erb
rocket_cms-0.18.4 lib/generators/rocket_cms/templates/deploy.erb
rocket_cms-0.18.3 lib/generators/rocket_cms/templates/deploy.erb
rocket_cms-0.18.2 lib/generators/rocket_cms/templates/deploy.erb
rocket_cms-0.18.1 lib/generators/rocket_cms/templates/deploy.erb