discourse/config
Guo Xiang Tan 40fa96777d
FEATURE: Post deployment migrations. (#6406)
This moves us away from the delayed drops pattern which
was problematic on two counts. First, it uses a hardcoded "delay for"
duration which may be too short for certain deployment strategies.
Second, delayed drop doesn't ensure that it only runs after
the latest application code has been deployed. If the migration runs
and the application code fails to deploy, running the migration after
"delay for" has been met will cause the application to blow up.

The new strategy allows post deployment migrations to be skipped if the
env `SKIP_POST_DEPLOYMENT_MIGRATIONS` is provided.

```
SKIP_POST_DEPLOYMENT_MIGRATIONS=1 rake db:migrate
-> deploy app servers
SKIP_POST_DEPLOYMENT_MIGRATIONS=0 rake db:migrate
```

To aid with the generation of a post deployment migration, a generator
has been added. Simply run `rails generate post_migration`.
2018-10-08 15:47:38 +08:00
..
cloud/cloud66 Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
environments Fix the build. 2018-06-01 11:24:32 +08:00
initializers FEATURE: Post deployment migrations. (#6406) 2018-10-08 15:47:38 +08:00
locales minor copyedit for bookmarks 2018-10-07 04:17:59 -07:00
application.rb extract inline JS that's used to store preloaded data (#6370) 2018-09-17 16:31:46 +08:00
boot.rb Make bootsnap MRI only for now 2018-02-26 10:29:25 +11:00
cdn.yml.sample
database.yml Support user defined postgres timeouts 2017-10-27 09:59:44 -04:00
deploy.rb.sample
discourse.config.sample
discourse.pill.sample
discourse_defaults.conf FEATURE: Add custom S3 Endpoint and DigitalOcean Spaces/Minio support for Backups (#6045) 2018-07-16 14:44:55 +10:00
environment.rb
logrotate.conf
multisite.yml.production-sample
nginx.global.conf
nginx.sample.conf correct multisite bleed in proxy cache 2018-04-11 11:02:16 +10:00
projections.json
puma.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
routes.rb SECURITY: remove admin memory diagnostics routes 2018-09-18 08:35:09 +10:00
sidekiq.yml Opps no reason to limit this to 1. 2017-09-29 08:19:35 +08:00
site_settings.yml FEATURE: Mixed case tagging (#6454) 2018-10-05 10:23:52 +01:00
spring.rb
thin.yml.sample
unicorn.conf.rb Allow unicorn timeout to be configurable via ENV. 2018-09-04 13:21:41 +08:00
unicorn_launcher Fix missing quotes in unicorn_launcher. 2018-10-05 12:21:07 +08:00
unicorn_upstart.conf