Today I Learned

Giant Monkeys Learning

3 posts by marcotralles @marco_tralles

make firefox to accept puma-dev cert permanently

every time, firefox is restarted, and i’m opening https://gomus.test again, the cert has to be accepted manually again.

  • use open ~/Library/Application\ Support/io.puma.dev/ in terminal to show your local puma-dev certs folder
  • enter about:preferences#privacy into firefox url-bar
  • all the way at the bottom you’ll find Certificates
  • click on View Certificates
  • in the last Authorities tab, you can import the Puma-dev certificate you’ve revealed in first step
  • you only need to accept this for websites …

from now on, firefox will without any disturbance open local https:// puma-dev websites.

running sidekiq job in console

working with clients database locally has to be done without having sidekiq running to prevent side-effects like causing relay-interactins, mail-sends and others. but. sometimes, to debug burried mantraps you have to use the local connsole and you like to execute a task, which is usually performed by sidekiq. there is a simple way to run those tasks locally.

asuming that you have one item in your queue to execute, you can easy run:

job = Sidekiq::Queue.new("low").first
job.klass.constantize.new.perform(*job.args)

if you have to find something by the id shown in backend, you can utilize the Sidekiq API for distinct access.