say I\'ve got my rails app on github and am deploying the github repo on heroku.
I\'ve got a situation where I have a simple text file with bunch of words (it is in my g
Put your ruby script in a bin directory and git push it to Heroku. Now you can execute a shell command in the heroku console.
For example, if your Ruby script is bin/foo.rb, you can run the following command in the Heroku console:
`ruby bin/foo.rb`
Note the use of backticks.