ぼざクリタグ広場 https://hub.nizika.monster
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

20 lines
678 B

  1. env :PATH, '/root/.rbenv/shims:/root/.rbenv/bin:/usr/local/bin:/usr/bin:/bin'
  2. set :path, '/var/www/btrc-hub/backend'
  3. set :environment, 'production'
  4. set :output, standard: '/var/log/btrc_hub_nico_sync.log',
  5. error: '/var/log/btrc_hub_nico_sync_err.log'
  6. job_type :rake,
  7. 'cd :path && set -a && . /etc/btrc-hub/backend.env && set +a && ' \
  8. ':environment_variable=:environment bundle exec rake :task --silent :output'
  9. every 1.day, at: '11:00 am' do
  10. rake 'nico:sync', environment: 'production'
  11. end
  12. every 1.day, at: '0:00 am' do
  13. rake 'post_similarity:calc', environment: 'production'
  14. rake 'tag_similarity:calc', environment: 'production'
  15. end