How to export a Ruby Array from my Heroku console into CSV?

后端 未结 10 1033
悲&欢浪女
悲&欢浪女 2021-02-02 11:17

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

10条回答
  •  轮回少年
    2021-02-02 11:33

    I tried using Tee as suggested and also got stuck at

    Running `console` attached to terminal... up, run.4165
    

    I ended up running an SSH shell to localhost and then piped it through tee.

    $ ssh localhost | tee output.txt
    $ heroku run console
    

    Might not be the best solution, but it worked for me.

提交回复
热议问题