Skip to content

Instantly share code, notes, and snippets.

@carlesjove
Created September 5, 2019 18:18
Show Gist options
  • Save carlesjove/1778fcf85e078df370bcdba6ef8dd406 to your computer and use it in GitHub Desktop.
Save carlesjove/1778fcf85e078df370bcdba6ef8dd406 to your computer and use it in GitHub Desktop.
Runs a script from your computer and outputs in a file
heroku run rails c --no-tty --app APP < FILE_PATH > OUTPUT_PATH
@carlesjove
Copy link
Author

Example:

heroku run rails c --no-tty --app APP < script.rb > output.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment