Sha256: 5fc5e3c69763d30aba998e3890c8e23bb5047cff2fb5295f45e8b3a588952f4d
Contents?: true
Size: 1.24 KB
Versions: 6
Compression:
Stored size: 1.24 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 %>" #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
6 entries across 6 versions & 1 rubygems