-
Notifications
You must be signed in to change notification settings - Fork 7
How it works
Alex Musayev edited this page Sep 18, 2018
·
1 revision
Start background jobs server (see delayed_job):
rails jobs:work
Execute all existing jobs and stop:
rails jobs:workoff
Schedule background jobs to refresh all feeds:
rails pull:all
Instantly refresh one single feed:
rails pull:xkcd jobs:workoff
Start web frontend server (not essential for the service to operate):
rails server
Cron configuration to refresh all feeds every 5 minutes:
*/5 * * * * cd /var/www/feeder/current && RAILS_ENV=staging /home/deploy/.rbenv/shims/bundle exec rails pull:all jobs:workoff > /var/www/feeder/current/log/cron.log 2>&1
Edit crontab:
crontab -e
List cron jobs:
crontab -l