I am looking to export an array from my heroku console into a local CSV file.
In my current situation, I have a daily rake task which looks for tweets talking about my a
You can also use rails runner
to run a line of code or three on heroku and pipe (or tee) the results to a file:
heroku run rails runner \'Tweet.all.to_csv\' -a my-app-name | all_tweets.csv
You can disable rails logging if that's showing up in your file and trim the top of the file if you're getting startup logging like "Running `rails runner`" in your file, but that should be easy to do.