> On Apr 2, 2015, at 2:58 PM, Gary Tsai <gary.m.t...@gmail.com> wrote:
> 
> So in the runner I’m actually calling the csv file locally from my desktop.  
> I’ve seen snytax where they keep it in a tmp folder locally on the desktop? 
> I’ve also seen people keep their cvs files in the db folder, and running 
> something like, “heroku rails runner db/your_file.csv”  (<——not sure about 
> the command or syntax there)
> 
> Overall, I just find it strange the rails runner works locally, but not on 
> heroku (still at the WTF - stage).

OHH!

I’m not too familiar with the runner since I don’t use it — but are you sure 
you can access your local desktop file inside the runner command? I think 
that’s your problem. The Heroku runner is looking for the file on your dyno, 
not on your local machine.

If you CSV is actually deployed along with your app, then you can keep in the 
db/ folder, yes. 

I was talking about a strategy that involved people upload CSV files to my app 
that get processed in background jobs, so in my case I can’t actually include 
the CSV in my db folder because it isn’t part of my repo. 


> 
>> Perhaps Heroku is detecting your code try to make a disk call and killing it 
>> for security purposes? It definitely looks like it is killed by the 
>> platform. 
>> 
> 
> Maybe?


Sounds like the right explanation to me. 

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Heroku" group.

To unsubscribe from this group, send email to
heroku+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/heroku?hl=en_US?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"Heroku Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to heroku+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to