Learnings
New Learning
About The App
Hire Me
Writing Samples
Edit Learning
Title
Body
Context: `rbenv exec bin/dev` failed (`rbenv: bin/dev: command not found`), repeating a similar issue from Apr 8. My Observation: The `bin/dev` script itself likely works fine when I execute it directly (`./bin/dev`) if my `PATH` includes the `rbenv` shims correctly. Learning: The need for `rbenv exec` seems inconsistent, particularly with binstubs like `bin/dev`. This likely points to subtle issues in my shell's `rbenv init` configuration or `PATH` setup. While `rbenv exec` is a workaround for `rails`, `bundle`, `rake`, it might interfere with correctly shimmed binstubs. I decided to recommend `./bin/dev` as the primary way to start the server, potentially falling back to `rbenv exec` if `./bin/dev` uses the wrong Ruby, and documented the preferred method.
Learned on (YYYY-MM-DD)
Tags
Add comma-separated tags. They help filter learnings later.
Back to Learnings