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...
...you will meet in other projects — Sidekiq (very mature, needs Redis) and Solid Queue (bundled with Rails, less mature) — and explain why GoodJob is our default. Resources
...a worker process alongside your server. Tip Add the worker to Procfile.dev (e.g. worker: bundle exec good_job start) so bin/dev brings it up with the server and the asset...
...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
...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...
.../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
...you have to upload the new certificate : (if you don't have a ca-bundle you can omit the -c www.example.com.ca-bundle) iam-servercertupload --aws-credential-file ./aws-credential.txt -b www.example.com.crt...
...k www.example.com.key -c www.example.com.ca-bundle -s www.example.com-2011 -v The output should look like this and includes the server certificate Amazon Resource Name (ARN) and GUID:
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
Recently I made an upgrade from Bootstrap 3 to Bootstrap 4 in a bigger project. Here are some tips how...
...library should only be loaded for that screen. It should not blow up the bundle size for all screens. You can load code on demand by using import() as a...
Learn more We have another card: Webpack: How to split your bundles Webpack documentation: Code Splitting Unpoly: Loading large libraries on-demand
...with-ruby-include=$rvm_path/src/ruby-1.9.3-p448 Resume what you were doing before (probably a bundle install). Here is how the "full" error looks like when a Bundler installation fails. Gem::Installer...
Results logged to /home/martin/.rvm/gems/ruby-1.9.3-p448/gems/debugger-linecache-1.1.2/ext/trace_nums/gem_make.out An error occurred while installing debugger-linecache (1.1.2), and Bundler cannot continue. Make sure that `gem install debugger-linecache -v '1.1.2'` succeeds before bundling...
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...
...command, e.g. geordi rs or geordi dev[server] command dependencies, e.g. geordi rspec invokes geordi bundle-install (which bundles only if needed) no cluttered /usr/bin, but all commands in one...
...little niceties New commands setup: set up a Rails project for the first time (bundle install, create database.yml, create databases, migrate), optionally run all tests (--test) or load a dump...
...can set the number of processes via ENV variable manually: PARALLEL_TEST_PROCESSORS=1 bundle exec geordi cucumber Alternatively, you can run the vanilla cucumber command with Geordi's VNC...
...it is relevant to run all tests. Single tests are always run single threaded: bundle exec geordi cucumber features/some.feature Use cases: Somewhere in the test run a deprecation warning is...
...spring binstub --all, your binstubs will be using Spring. bin/rails console bin/rake db:migrate bundle exec rails ... Bundle exec is inconsistent when it comes to spring. Some commands will use...
...it, some won't. bundle exec rails console # starts Spring bundle exec rake # does not start Spring Disabling Spring You can temporarily disable Spring by setting the environment variable DISABLE...
...integration test container you can run your tests export CHROMEDRIVER_URL=http://localhost:9999 bundle exec rspec specs/system/test_spec.rb # You might need to set remove `--headless` from your chromedriver options in...
...Remove version locks in package.json for webpack and webpack-dev-server Install by calling bundle update webpacker and yarn upgrade Update file contents Work through the Webpacker 4 migration guide...
...use it, you first need to wrap the require 'mathn' call (usually by wrapping Bundler.require) like this: # config/application.rb MathnWorkaround.intercept do Bundler.require(:default, Rails.env) if defined?(Bundler) # If you require "mathn...
...port 12345 (#0) > GET / HTTP/1.1 > Host: localhost:12345 > User-Agent: curl/7.68.0 > Accept: */* > * Mark bundle as not supporting multiuse < HTTP/1.1 301 Moved Permanently < Date: Wed, 26 Apr...
...you want to require a gem, that is not in the Gemfile of you bundle and therefore not in your loadpath, you need to add the path manually and require...
...rails_root}/tmp/pids/#{w.name}.pid" w.env = {"RAILS_ENV"=>rails_env, 'PIDFILE' => w.pid_file} w.start = "bundle exec rake my_task &" ... end Your Rake task should write its process ID to that...
...this step definition: Then /^debugger$/ do debugger end Make the Ruby debugger work in Bundler projects Bundle the ruby-debug gem into the :development, :test and :cucumber groups. Problems?
...branch: '0.3.x-lts' # for Rails 3.x in your Gemfile, and do a bundle update mysql2 Background mysql2 used to check that the client library used at runtime actually...
:autocmd Syntax * syn match ExtraWhitespace /\s\+$\| \+\ze\t/ TextMate The Text bundle offers a command Remove Trailing Spaces in Document / Selection, which you can call before saving...
...This is not aware of git (i.e., which lines YOU have edited). In the bundle editor, assign it a shortcut like Cmd + Alt + Backspace. Update: Since 9-29-2012, TextMate2...
...roles: :app, only: { primary: true } do run "cd #{current_path} && RAILS_ENV=#{rails_env} bundle exec rails runner 'ScriptRunner.go'" end becomes desc 'Run script' task :script do on primary :app...
within current_path do with rails_env: fetch(:rails_env, 'production') do execute :bundle, 'exec', "rails runner 'ScriptRunner.go'" end end end end There is no :user setting any more...