---
title: "Discussion on \"[Quicky] Self contained Rails script\" | Hashnode"
description: "Discussion on \"[Quicky] Self contained Rails script\". To run a script with your Rails application setup use rails runner https://guides.rubyonrails.org/command_line.html#bin-rails-runner\n# inline script\n./bin/rails runner \"puts Rails.env\"\n\n# file\n./bin/rails runner path/to/file.rb\n\nIf you want to have a..."
url: "https://hashnode.com/posts/quicky-self-contained-rails-script/65f164e0fb558d27e31fe92d"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [\[Quicky\] Self contained Rails script](https://blog.brennetot.com/quicky-self-contained-rails-script?utm_source=hashnode&utm_medium=feed)

To 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...

Mar 13, 2024 · 1 min read · blog.brennetot.com  
Read the article

-   [#rails](https://hashnode.com/tag/rails)
-   [#ruby-on-rails](https://hashnode.com/tag/ruby-on-rails)
-   [#script](https://hashnode.com/tag/script)

## Written by

[Thomas Brennetot](https://hashnode.com/@Damax)

@Damax · Tokyo, Japan

  
[View profile](https://hashnode.com/@Damax)

Rails excellence with innocence

10+ years most with Ruby on Rails and JavaScript frontend and some Go. My first language is C for 3 years in university.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
