Created
April 13, 2020 03:25
-
-
Save luccasmaso/8276b0f102a88b62053393292bee3559 to your computer and use it in GitHub Desktop.
Run local ruby scripts on Heroku with ENV variables
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cat /path/to/script.rb | heroku run ENV_A=1 ENV_B=2 rails console -a your-application --no-tty |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment