documentation/Running-Mastodon
Akihiko Odaki 845ed4ad99 Use db:setup instead of db:migrate when creating the database (#560)
db:setup is used in all guides except Docker Guide, which uses db:migrate
to create the database. db:setup is actually superior over db:migrate for
the purpose in terms of performance and compatibility.

db:setup is performant because it does not perform redundant migrations.
db:migrate, on the other hand, executes migration code which will be
dismissed by later migrations. db:migrate also waits for seconds to allow
to interrupt migrations if it is not favorable to run them on a running
server, but db:setup is obviously executed on a instance which is not
running yet, and the wait is unnecessary.

db:migrate has a compatibility issue. It requires a compatibility layer
to keep it working, and such one may be broken, or not provided by
dependencies such as Paperclip.

This commit replaces db:migrate with db:setup in the building guide. The
procedure cannot be applied to migration from an older release, where
the old procedure could, but it is not problematic because it has
dedicated Updating section.
2018-03-09 06:41:01 +01:00
..
Administration-guide.md Add information about HTML formatting in admin settings 2018-03-08 08:39:46 +01:00
Alternatives.md apache config fix. (#520) 2018-01-20 06:23:10 +01:00
Customizing.md Fix variables.scss path (#492) 2017-12-20 22:55:43 +01:00
Development-guide.md Update Mac instructions to 2.5 (#544) 2018-02-18 02:11:19 +01:00
Docker-Guide.md Use db:setup instead of db:migrate when creating the database (#560) 2018-03-09 06:41:01 +01:00
Enabling-LDAP-login.md LDAP_ENABLED no longer required outside of .env 2018-03-07 12:23:00 +01:00
Heroku-guide.md removes mentions of hentai.loan, fixes sentence 2017-10-30 05:44:05 +01:00
List-of-Rake-tasks.md Typo in List-of-Rake-tasks.md (#559) 2018-03-08 13:08:14 +01:00
Maintenance-Tasks.md Update Maintenance-Tasks.md 2017-07-25 17:40:04 +02:00
Migration-guide.md Add migration guide (#396) 2017-09-21 04:13:40 +02:00
Nanobox-Guide.md [Nanobox] Update Nanobox Guide 2017-11-12 15:59:03 -07:00
PgBouncer-guide.md Tiny improvements (#539) 2018-02-11 19:27:53 +01:00
Production-guide.md Revert "Removes SSL configuration to point users to the Mozilla SSL Configuration Generator" (#475) 2018-02-10 23:18:01 +01:00
Resources-needed.md New server 2017-07-01 05:43:40 +02:00
Scalingo-guide.md scalingo guide: major improvements 2017-05-05 22:35:05 -05:00
Security-Guide.md Rename Security-Guide to Security-Guide.md (#417) 2017-10-09 13:39:44 +02:00
Serving_a_different_domain.md Create Serving_a_different_domain.md 2017-06-11 03:55:38 +02:00
Tuning.md Merge pull request #239 from jeroenpraat/patch-2 2017-05-22 04:23:21 +02:00
Updating-Mastodon-Guide.md Don't include RCs when checking out latest tag. (#369) 2017-09-11 02:01:41 +02:00
Vagrant-guide.md Explicitly use --provider option for vagrant up 2017-05-31 12:52:03 +09:00