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

后端 未结 10 929
悲&欢浪女
悲&欢浪女 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:31

    I tried with the following steps with the new heroku console.I was able to get the logs.

    1. type command script output.txt (this creates a file named output.txt for saving terminal logs)
    2. open heroku console and execute commands.

    3. when you are done type ctrl + d.

    Terminal logs are saved in output.txt file.

提交回复
热议问题