aantix / turkee

Blurring the line between Mechanical Turk, Rails and usability testing..
http://github.com/aantix/turkee
MIT License
152 stars 39 forks source link

Rake working locally but not on Heroku #33

Closed owenstrevor closed 9 years ago

owenstrevor commented 9 years ago

Hi Jim, thanks for the great gem. I got the basic form part working locally but on Heroku when I try to run the rake I get a "Don't know how to build task" error. Any ideas? Have looked everywhere for an answer but can't seem to figure it out.

owenstrevor commented 9 years ago

Also, when I run 'rake --describe' on Heroku command line it shows that it sees the 'rake turkee:post_hit'

owenstrevor commented 9 years ago

Figured it out!

Heroku was removing the quotation marks from the title and description in the command line so that the whole command got cuttoff when it hit one of the spaces.

owenstrevor commented 9 years ago

I got it to work by replacing the spaces with dashes just to see if it would work and it did. As I believe the issue is with the Heroku CLI (command line interface) it should be easy to execute this from a cron job within the app in the future so that I don't need to worry this issue happening.