PoGoBag icon indicating copy to clipboard operation
PoGoBag copied to clipboard

'whenever' creates crontab entry, but path issues...

Open OldSkoooool opened this issue 8 years ago • 1 comments

'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 ...)

OldSkoooool avatar Aug 11 '16 08:08 OldSkoooool

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)

OldSkoooool avatar Aug 11 '16 16:08 OldSkoooool