Skip to content

Instantly share code, notes, and snippets.

@luccasmaso
Created April 13, 2020 03:25
Show Gist options
  • Save luccasmaso/8276b0f102a88b62053393292bee3559 to your computer and use it in GitHub Desktop.
Save luccasmaso/8276b0f102a88b62053393292bee3559 to your computer and use it in GitHub Desktop.
Run local ruby scripts on Heroku with ENV variables
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