> On Apr 2, 2015, at 3:20 PM, Gary Tsai <gary.m.t...@gmail.com> wrote:
>
> Hmm, I’ll do it from the DB folder then, but that seems strange to me,
> because the original implementation of the app was to allow non-techies to
> use a rails runner (it’s very similar to rake task, but you don’t need to
> fire-up the app) to be able to upload the CSV via the command line with one
> command.
>
> Let me try upload from the app itself and see.
>
> If this were a rake task how would you call it from the db folder? Heroku
> run rake name_of_task db/name_of_csv.csv (<<—???)
>
>
You wouldn’t, all you would be doing is passing an argument to the rake task,
and let the rake task accept the argument and know what to do with it. In your
case, that argument would simply be a file location like db/xyz.csv
http://stackoverflow.com/questions/825748/how-do-i-pass-command-line-arguments-to-a-rake-task
<http://stackoverflow.com/questions/825748/how-do-i-pass-command-line-arguments-to-a-rake-task>
--
--
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.