Replies: 3 comments 1 reply
-
It seem like you could have your I haven't tried to do this in my own apps. Generally for an irb shell, I just load the models ( |
Beta Was this translation helpful? Give feedback.
-
I'm not sure if this would still work, but at one point in time racksh was fairly popular. I looked over the source and cant' see any reason why it wouldn't still work today. |
Beta Was this translation helpful? Give feedback.
-
racksh looks neat. I also found the |
Beta Was this translation helpful? Give feedback.
-
I've been playing with Roda and curious how folks enter a quick "console session" like
rails console
provides. I've been movingrequire
statements around betweenconfig.ru
andapp.rb
and testing different strategies with Zeitwerk and rack-unreloader.I thought easiest would be to make
app.rb
load everything, then I added an.irbrc
file withrequire_relative "app"
and it worked. However, now that I have more requires inapp.rb
, I can't follow the advice at the bottom of https://github.com/jeremyevans/rack-unreloader#dependency-handling- to load dependencies inconfig.ru
so they aren't reloaded every timeapp.rb
changes.Curious how others handle this. Thanks!
Beta Was this translation helpful? Give feedback.
All reactions