Rackup
Thursday May 08 2025 • 02:05 AM
For starting Sinatra apps, I’d gotten into the habit of defining a custom task called :serve
in my Rakefile, but in recent experiments with ActiveRecord, this task would consistently break.
I’m not well versed in Ruby processes yet, but I believe running the app.rb
file directly from the terminal is different from invoking the Rake task because two new processes are started with the latter approach —one for Rake and the other for starting the app itself.
I’ve added rackup and the puma server to my project as I look towards deployment in my own VPS like I mentioned yesterday.