Thomas Brennetotblog.brennetot.com·Mar 13, 2024[Quicky] Self contained Rails scriptTo run a script with your Rails application setup use rails runner https://guides.rubyonrails.org/command_line.html#bin-rails-runner # inline script ./bin/rails runner "puts Rails.env" # file ./bin/rails runner path/to/file.rb If you want to have a...RailsAdd a thoughtful commentNo comments yetBe the first to start the conversation.