parent
b886ea1413
commit
336882a8fd
|
@ -91,3 +91,8 @@ in a `config/initializers/production.rb` or similar file:
|
||||||
`http://localhost:3000` with your new `test` user:
|
`http://localhost:3000` with your new `test` user:
|
||||||
|
|
||||||
lobsters$ rails server
|
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'
|
||||||
|
|
Loading…
Reference in a new issue