README: Add sample crontab (#287)

Add sample crontab
This commit is contained in:
Peter Bhat Harkins 2016-04-23 20:20:55 -05:00 committed by joshua stein
parent b886ea1413
commit 336882a8fd

View file

@ -91,3 +91,8 @@ in a `config/initializers/production.rb` or similar file:
`http://localhost:3000` with your new `test` user:
lobsters$ rails server
* In production, set up crontab or another scheduler to run regular jobs:
*/20 * * * * cd /path/to/lobsters && env RAILS_ENV=production bundle19 exec rake ts:index > /dev/null
*/5 * * * * cd /path/to/lobsters && env RAILS_ENV=production sh -c 'bundle19 exec ruby script/mail_new_activity; bundle19 exec ruby script/post_to_twitter'