...at the same time With a custom Capistrano task: CMD='zgrep -P "..." RAILS_ROOT/log/production.log' bundle exec cap production app:run_cmd See Capistrano 3: Running a command on all servers...

...below is taken from the excid3/esbuild-rails package. Let's say we have an application.js bundle that imports jQuery, sets window.$ and then imports code that uses the global $() function: // application.js...

edgeapi.rubyonrails.org

...everyone on the project might need to re-recreate their test databases like so: bundle exec rails parallel:drop && bundle exec rails parallel:prepare

rspec.info

...spec/spec_helper.rb : config.example_status_persistence_file_path = 'spec/examples.txt' Rerun all failed examples using --only-failures bundle exec rspec --only-failures (or g rs --only-failures with geordi) will rerun all examples...

...which failed in the last run. Rerun a single failed example using --next-failure bundle exec rspec --next-failure (or g rs --next-failure with geordi) will rerun only the...

When your JavaScript bundle is so massive that you cannot load it all up front, I would recommend to load large libraries from the compilers that need it.

makandra dev

...has a doctor task that will print information about Environment: Ruby, Rubygems and Bundler versions List of Capistrano gems and whether an update is available All config variables and their...

Capistrano server config $ bundle exec cap staging doctor

...contents on the fly (like some CSV). Add zip_tricks to your Gemfile and bundle install. In your controller, include ZipTricks::RailsStreaming. You can then use the zip_tricks_stream...

...streaming existing file attachments (from ActiveStorage, Carrierwave, etc.). Add zipline to your Gemfile and bundle install. In your controller, include Zipline. You can then use the zipline method in controller...

Unfortunately, this does not work properly in a multi-file environment, where a bundler like Webpack or esbuild requires individual files. While you could @import (or @use) another file...

...files, you need to stop concatenating files using the import and require of your bundler. Instead you must concatenate files using Sass' @import statement...

...browser (suggested) gem 'capybara-screenshot' # Optionally gem 'rspec' # Dependency of Spreewald end Now run bundle exec cucumber --init and add this code to env.rb: Bundler.require :default, :test # Require default + test...

github.com

...data has been recorded you can use that to prioritize your specs by calling bundle exec prioritized. Then it will read out the current modifications and the saved coverage data...

makandra dev

We want to move away from jQuery in future projects Motivations are performance, bundle size and general trends for the web platform. The native DOM API is much nicer...

...each frontend management system listed below, understand how they achieve: Asset concatenation Are they bundling many small JavaScript or CSS files into one single file? If yes, how can we...

...is a sprockets statement that would copy and duplicate the content file in your bundle each time you use it. only SASS @imports are aware of the current state of...

...can use the method say_status. Statuses used by Rails are: say_status :run, 'bundle install' say_status :identical, :blue, 'some_file' say_status :remove, :green, 'some_file'

makandra dev
github.com

...recent version. You should have at least 0.12.1, which you may obtain from here. Bundle it with your application and tell PDFKit where to find the bundled binary like so...

makandra dev

...the installation after installing rustc. E.g. rbenv install 3.3.4 You will probably need a bundle pristine afterwards. Enabling YJIT Ruby doesn't yet enable YJIT by default: # Start Ruby without...

makandra dev

Store this snippet in .git/hooks/pre-push: if [ -f ./.rubocop.yml ]; then echo 'Running Rubocop ...' bundle exec rubocop --parallel fi chmod +x .git/hooks/pre-push The snippet only executes Rubocop if it finds...

...build the Cronjob on your server. job_type :enqueue, 'cd :path && :environment_variable=:environment bundle exec bin/enqueue :task' every 5.minutes do enqueue 'monitoring' end The worker itself should live in...

getbootstrap.com

Recently I made an upgrade from Bootstrap 3 to Bootstrap 4 in a bigger project. Here are some tips how...

...verify_mode: 'none' } start your server as usual, but go to https://localhost:3000 bundle exec rails s Accept the certificate in your browser See also Creating a self-signed...

.../sshd#command=command To combine this, the authorized_keys should be look like: command="cd /path/to/your/application/current; bundle exec rails c --sandbox" ssh-rsa AAAASOME\PUBLIC_SSH-KEY bob.bobsen@example.com

This Capistrano task runs a command on all servers. bundle exec cap production app:run cmd='zgrep -P "..." RAILS_ROOT/log/production.log' Code # lib/capistrano/tasks/app.rake namespace :app do # Use e.g. to grep logs...

...capistrano-rails is a Gem that adds Rails specifics to Capistrano, i.e. support for Bundler, assets, and migrations. While it is designed for Asset Pipeline (Sprockets) assets, it can easily...

Rubymine 2024.3 bundles Grazie Lite by default. You need to enabled "German" under Settings/Preferences | Editor | Natural Languages. Hunspell (legacy) Install the Hunspell plugin and restart Ruby Mine

...preprocessed: true end end Preprocess this version for all existing records bundle exec rails runner 'User.find_each { |user| user.avatar.variant(:preview).processed }' Use the new variant and deploy