diff options
author | Mark Felder <feld@FreeBSD.org> | 2020-07-13 09:56:05 -0500 |
---|---|---|
committer | Mark Felder <feld@FreeBSD.org> | 2020-07-13 09:56:05 -0500 |
commit | 442fe3cd45edceda746e8c62056670c4d698aa0f (patch) | |
tree | 186aeeff681d161ea9ff0f33e0f967b824af5c43 /docs/configuration/howto_database_config.md | |
parent | e1908a5270d7b060238c9bc8bcd2808c705c27d9 (diff) | |
download | pleroma-442fe3cd45edceda746e8c62056670c4d698aa0f.tar.gz pleroma-442fe3cd45edceda746e8c62056670c4d698aa0f.zip |
Show examples for both OTP and source
Diffstat (limited to 'docs/configuration/howto_database_config.md')
-rw-r--r-- | docs/configuration/howto_database_config.md | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/docs/configuration/howto_database_config.md b/docs/configuration/howto_database_config.md index e4ddc190c..ded9a2eb3 100644 --- a/docs/configuration/howto_database_config.md +++ b/docs/configuration/howto_database_config.md @@ -13,9 +13,21 @@ The configuration of Pleroma has traditionally been managed with a config file, 2. Run the mix task to migrate to the database. You'll receive some debugging output and a few messages informing you of what happened. + **Source:** + ``` $ mix pleroma.config migrate_to_db + ``` + + or + + **OTP:** + ``` + $ ./bin/pleroma_ctl config migrate_to_db + ``` + + ``` 10:04:34.155 [debug] QUERY OK source="config" db=1.6ms decode=2.0ms queue=33.5ms idle=0.0ms SELECT c0."id", c0."key", c0."group", c0."value", c0."inserted_at", c0."updated_at" FROM "config" AS c0 [] Migrating settings from file: /home/pleroma/config/dev.secret.exs @@ -82,9 +94,21 @@ config :pleroma, configurable_from_database: true 2. Run the mix task to migrate back from the database. You'll receive some debugging output and a few messages informing you of what happened. + **Source:** + ``` $ mix pleroma.config migrate_from_db + ``` + + or + + **OTP:** + + ``` + $ ./bin/pleroma_ctl config migrate_from_db + ``` + ``` 10:26:30.593 [debug] QUERY OK source="config" db=9.8ms decode=1.2ms queue=26.0ms idle=0.0ms SELECT c0."id", c0."key", c0."group", c0."value", c0."inserted_at", c0."updated_at" FROM "config" AS c0 [] |