As we get ready to upgrade our servers I thought it’d be a good time to upgrade our deployment...
...to speed up deployment, asset precompilation can be skipped. This card automates the process. Capistrano 3 namespace :deploy do desc 'Automatically skip asset compile if possible' task :auto_skip_assets...
...and re-use the previous release's assets. [1] That is especially easy via Capistrano. Capistrano will automatically symlink your release's public/assets to a shared directory, so all you...
...deploy:assets:precompile task. Put the following code where you'd put other custom Capistrano tasks (default is lib/capistrano/tasks/*.rake) if ENV['SKIP_ASSETS'] Rake::Task['deploy:assets:precompile'].clear...
...on the next request. http://blog.phusion.nl/2014/01/02/phusion-passenger-4-0-33-released/ If you want to use this with capistrano 2.x just replace the touch command: - run "touch #{current_path}/tmp/restart.txt" + run "passenger-config...
...restart-app --ignore-app-not-running #{deploy_to}" If you are using capistrano 3.x: - execute :touch, "#{current_path}/tmp/restart.txt" + execute "passenger-config restart-app --ignore-app-not-running #{deploy...
...the pack is application.js): = image_pack_tag('media/application/images/logo.png') Deployment Follow Configuring Webpacker deployments with Capistrano. Tests In your cucumber test, you will want to regenerate your assets before each test...
etag { @@revision ||= File.read('REVISION') rescue nil } # Change all ETags after a new Capistrano release. etag { up.target } # Add this when you use Unpoly < 3 and optimize responses for render...
...bundle exec rake assets:precompile. Remember to remove the folder public/packs afterwards. 11. Configure Capistrano and servers such that all servers share assets 12. Add a binstub for yarn if...
Remove require "sprockets/railtie" from application.rb Configure Deployment See Configuring Webpacker deployments with Capistrano. Deploy Check if your servers have the correct version of node and yarn installed.
...to upgrade to Sidekiq 6+ Setup Sidekiq and Redis Using Sidekiq with Procfile and Capistrano (example...
...group :deploy do gem 'whenever', require: false end Add it to your config/deploy.rb: For Capistrano 2 set :application, 'PROJECT_NAME' # might be already set set :whenever_command, "bundle exec whenever...
...to run cronjobs on the :db server. That's just fine for us. For Capistrano 3 set :application, 'PROJECT_NAME' # might be already set set :whenever_roles , [:cron] set :whenever...
...your deploy.rb add this: require 'backports/1.9.2/array/select' Background You propably have an older version of Capistrano and thereby an older version of net-ssh which is used by Capistrano to connect...
You can call bin/webpack explicitely to compile files to public/packs. When deploying with Capistrano this is done automatically by the compile:assets task. Why Webpacker sometimes does not re...
...version-agnostic, or remotely, e.g. geordi console staging shell: open a shell on a Capistrano target, optionally selecting the server with --select-server tests: run all employed tests; checks for...
...mentioned in the BUNDLED_WITH block: BUNDLED WITH 1.17.1 This broke during deployment while Capistrano tries to run bundle --deployment --quiet --without development test. On our development machines bundle install...
Guided deployment, including push, merge, switch branches. Does nothing without confirmation. geordi capistrano Run something for all Capistrano environments, e.g. geordi cap deploy geordi setup -t -d staging...
...will keep using the cached font and not see new icons. When deploying with capistrano, the following workaround will cause a new font file to be generate on every deploy...
...task raised a "can't convert Hash into String" error e.g. while deploying with Capistrano. https://github.com/makandra/craken
179.62 sass-rails 205.04 delayed_job_active_record 286.76 rails 289.36 mail 291.98 capistrano 326.05 delayed_job 414.27 pry 852.13 salesforce_bulk_api
Remove gem oniguruma Remove gem fastercsv Replace gem mysql with mysql2 Update gem capistrano 2.12.0 to ~>2.12 when bound for Ruby 1.8.7 and remove obsolete explicite Gemfile entries for...
Fix: downgrade net-ssh to version 2.9.1.
Capistrano recipes for database backups before migrations, passenger deployment strategy, release tagging in Git repos...