Sha256: baad3d30e0a1bcec0bed4d89b60a9fc3064c6fe96c7eb5265c241cb5f7c8203c
Contents?: true
Size: 1.01 KB
Versions: 1
Compression:
Stored size: 1.01 KB
Contents
set :service_manager, :upstart set :sidekiq_web_namespace, nil desc 'Restart application' task :restart_application do comment %(Restarting application) command %(passenger-config restart-app --ignore-app-not-running #{fetch(:deploy_to)}) end namespace :background_workers do [:start, :stop, :status, :restart].each do |state| desc "#{state.capitalize}ing background workers" task state do background_worker(state) end end end task :link_sidekiq_assets do custom_assets_path = File.join('./', 'public', fetch(:sidekiq_web_namespace).to_s) command "bundle_path=\"$(RAILS_ENV=#{fetch(:rails_env)} #{fetch(:bundle_bin)} show sidekiq)\"" command "mkdir -p #{custom_assets_path}" command "ln -nfs $bundle_path/web/assets #{custom_assets_path}/sidekiq" end namespace :bundle do desc 'Install bundler' task :install_gem do comment 'Installing bundler' command 'bundler_version=`tail -n 1 Gemfile.lock | xargs`' command 'gem install bundler:$bundler_version --no-document' end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mina-infinum-1.9.0 | lib/mina/infinum/tasks.rb |