Files
danbooru/config/deploy/production.rb
evazion 804ccd4fcc capistrano: fix cronjobs not updating.
Bug: capistrano didn't update the crontab during deployment. As a result
the crontab still referenced an old deployment. Eventually that
deployment was deleted and cronjobs started silently failing.

Broken in 223e5f1e8. Turns out that `whenever` defaults to running on
servers with the `db` role. Removing kagamihara from the db role meant
that whenever was no longer configured to run anywhere.
2019-08-21 18:02:55 -05:00

12 lines
362 B
Ruby

set :user, "danbooru"
set :rails_env, "production"
append :linked_files, ".env.production"
server "kagamihara", :roles => %w(web app cron), :primary => true
server "shima", :roles => %w(web app)
server "saitou", :roles => %w(web app)
server "oogaki", :roles => %w(worker)
set :newrelic_appname, "Danbooru"
after "deploy:finished", "newrelic:notice_deployment"