Commit Graph

31 Commits

Author SHA1 Message Date
evazion
c14e3ec902 Remove staging environment.
We never used any of this stuff. The only environments used are
production, development, and test.
2021-09-16 00:44:26 -05:00
evazion
0563ca3001 docs: document config/ and some directories in app/.
* Add README files to several directories in app/ giving a brief
  overview of some parts of Danbooru's architecture.
* Add documentation for files in config/.
2021-06-27 05:21:38 -05:00
evazion
909b20c453 delayed jobs: reduce workers from 12 to 8.
Reduce worker count to reduce memory usage. Most are normally idle anyway.
2020-04-23 13:52:23 -05:00
evazion
008e97a787 capistrano: reduce delayed job worker count (16 -> 12). 2019-12-02 16:57:26 -06:00
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
evazion
e29e5fe984 Fix #4131: Upgrade to Ruby 2.6.
Upgrade procedure:

    $ echo 2.6.3 > .ruby-version

    # upgrade ruby-build to know about the latest ruby versions.
    # see also: github.com/rkh/rbenv-update
    $ cd ~/.rbenv/plugins/ruby-build && git pull

    # install the version of ruby specified in .ruby-version.
    # see also: github.com/capistrano/rbenv/issues/83
    $ rbenv install --skip-existing

    # update the shell to use the latest version of ruby by default.
    $ rbenv global 2.6.3

    # update rubygems and bundler
    $ gem update --system

    # update the lockfile to use the latest version of bundler
    $ bundle update --bundler
2019-08-14 12:25:50 -05:00
evazion
9b57631046 capistrano: fix newrelic deployment tagging.
Override the appname in config/newrelic.yml so that we don't
accidentally tag deployments under the wrong app.
2019-08-12 19:20:33 -05:00
evazion
223e5f1e81 capistrano: enable conditional migrations. 2019-08-07 22:11:07 -05:00
evazion
9996dd40bb capistrano: only log newrelic deployment in production.
Fix local development deployments getting logged in New Relic.
2019-08-07 22:11:07 -05:00
Albert Yi
66ce07e993 add additional install scripts, fix staging deploy 2018-10-16 09:47:58 -07:00
Albert Yi
1a4949368c add server 2018-10-09 14:40:43 -07:00
Albert Yi
1b6da3da71 remove oogaki from app role 2018-10-08 17:43:15 -07:00
r888888888
82cb31eb28 standardize on new servers 2018-10-04 01:11:31 -07:00
r888888888
2c4a0cd79d set rbenv path for staging 2018-01-30 12:03:03 -08:00
r888888888
f83480cc8a hard core path to rbenv root 2018-01-22 18:04:55 -08:00
r888888888
2aa7a8aa9c fix for statechecker 2017-01-24 14:32:06 -08:00
r888888888
e12d5e1290 fix cap files 2017-01-24 13:15:21 -08:00
Type-kun
12deb5d494 Include user "danbooru" in default development deploy profile
Mentioned in #2515
2016-08-26 23:20:24 +05:00
r888888888
a509658d5b fixes to install scripts 2015-10-02 13:36:40 -07:00
r888888888
1399e06837 set rails_env in cap scripts 2015-08-24 15:04:38 -07:00
r888888888
e669b66395 update to capistrano3 2015-08-19 15:53:13 -07:00
r888888888
3ed3febe06 update install scripts 2014-06-22 20:25:32 -07:00
r888888888
7b97ca192c fixes #2190 2014-06-12 21:16:21 -07:00
r888888888
d2819e7e2c revert deploy script changes 2014-03-17 13:22:00 -07:00
r888888888
e067f4e30e new version 2014-03-11 11:26:06 -07:00
r888888888
983cc5534f remove sonohara from deploy 2014-03-10 17:17:06 -07:00
r888888888
d5f575159f rename references of privileged to gold 2013-04-28 00:04:52 -07:00
albert
44028b8b95 update migrations 2013-02-20 23:02:43 -05:00
albert
086e70db54 Fixes #361 2013-01-22 14:41:16 -05:00
albert
fc007fccf8 install script fixes 2011-08-29 15:21:24 -04:00
albert
6b01c88679 added capistrano scripts 2011-08-22 17:19:25 -04:00