Journal Entry, June 21st to June 28th 2019

June 28, 2019 · 1 min read


  1. Wed June 26

    • How Laravel prevents your scheduled jobs from overlapping - Diving Laravel

      • The obr-sage-sync scheduler was broken in production due to network outages affecting Digital Ocean droplets. The sync:customers command would not execute via the scheduler because withoutOverlap() detected the command was still executing.
      • In this instance multiple copies were hung so I rebooted the machine and took a bit hunting this down. As a companion, whenever you kill any command as part of the scheduler, always clear the cache. It's a simple command that'll almost always save time trying to uncover the problem again.

Phoenix Framework

  1. Fri Jun 28

    • Started over with Phoenix 1.4.8 using asdf global packages for the following:

      elixir 1.9.0 (set by /Users/jbrayton/.tool-versions)
      erlang 22.0.4 (set by /Users/jbrayton/.tool-versions)
      nodejs 12.5.0 (set by /Users/jbrayton/.tool-versions)
    • Followed Using ASDF with Elixir and Phoenix but ran into some issues with the homebrew install method.
    • Essentially, I changed the shim for node to:

      #!/usr/bin/env bash
      # asdf-plugin: nodejs 10.15.3
      # asdf-plugin: nodejs 8.11.4
      # asdf-plugin: nodejs 12.5.0
      exec $(brew --prefix asdf)/bin/asdf exec "npm" "$@"
    • The path is really /usr/local/opt/asdf/bin/asdf and seems to work for the other packages. It could be that I was trying to do a local install before a global.