PoGoBag
PoGoBag copied to clipboard
'whenever' creates crontab entry, but path issues...
'whenever' creates crontab entry, but does not account for path of 'bundle' command -- cron throwing file-not-found errors ( RAILS_ENV=production /root/.rbenv/shims/bundle exec ...)
Also, it appears that the cron entry does not work... for some reason, it's not picking up the credentials from database.yml.
...oh. Maybe because I can't configure the gem 'pg' as per the config file comments.... Yeah, in the config/database.yml, it says this:
# Configure Using Gemfile
# gem 'pg'
which doesn't work in ubuntu.
Logs when running from cron:
rake aborted!
PG::ConnectionBad: FATAL: password authentication failed for user "postgres"
FATAL: password authentication failed for user "postgres"
(I'm using the default database.yml config)