Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get output from Rails Runner?

I'm working on a Rails Runner script and I want to see what values are set in a variable in the script?

Usual puts doesn't work...

like image 210
andrewleung Avatar asked Sep 07 '25 23:09

andrewleung


1 Answers

Ahh. Figured it out, use STDOUT.flush after each puts in the script.

http://redgreenrepeat.com/2016/08/20/til-feedback-in-rails-runner/

like image 136
andrewleung Avatar answered Sep 10 '25 12:09

andrewleung