KevinFalank/gentlemans_bet — pull request #19 by ballauriena (2014-02-23 02:28:23+00:00)
Title: Laura

Hey guys...so here is my branch...unfortunately, I have run into a wall so I figured it might help if some of you tested it out.

I am getting an error message that says FATAL: database "gentlemans_bet_production" does not exist when it tries to run my rake task.

Here is what you need to do...

In the .env.local file where you have Lorena's variables for bit.ly and the twitter key and secret for our gentleman's bet app, you need to include the OAUTH_TOKEN and OAUTH_secret in the list of environment variables from our twitter account for our app.

In your terminal, in the root of our app, run $ whenever --update-crontab gentlemens_bet_application
***gentlemens_bet_application is the name of our project file on my computer, so replace it with yours

When you do the above step, make sure there are some challenges in your database that expire tomorrow because that is what we should be looking for, if everything were working properly.

Every three minutes, you will get a mail message...to access these open a new terminal window and type mail...there will be a new message in there every 3 minutes...which shows that my job is running, however, I would expect that you will get the same error I am getting.

To stop that cron job from running, type $ crontab -r into your terminal, at which point you can edit the code, save, and repeat the above steps.

Maybe some of you guys have some more insight into what is going on here.

Thanks,
Laura