summaryrefslogtreecommitdiff
path: root/docs/administration/CLI_tasks/config.md
diff options
context:
space:
mode:
authorEgor Kislitsyn <egor@kislitsyn.com>2020-02-11 13:54:55 +0400
committerEgor Kislitsyn <egor@kislitsyn.com>2020-02-11 13:54:55 +0400
commit6875ccb6bfcc5ae62db26d38c3d5eac4c6f8706a (patch)
treedacb02d953473e3a0c6aeec58d86fb7fb1ed5886 /docs/administration/CLI_tasks/config.md
parent3c4a30c6db312aff2afbfcd423498be19c02c68c (diff)
parent5ebffd5224729413e53a55ddda9a1f86224d7d73 (diff)
downloadpleroma-6875ccb6bfcc5ae62db26d38c3d5eac4c6f8706a.tar.gz
pleroma-6875ccb6bfcc5ae62db26d38c3d5eac4c6f8706a.zip
Merge branch 'develop' into feature/new-registrations-digest
Diffstat (limited to 'docs/administration/CLI_tasks/config.md')
-rw-r--r--docs/administration/CLI_tasks/config.md20
1 files changed, 16 insertions, 4 deletions
diff --git a/docs/administration/CLI_tasks/config.md b/docs/administration/CLI_tasks/config.md
index 2af51c247..cc32bf859 100644
--- a/docs/administration/CLI_tasks/config.md
+++ b/docs/administration/CLI_tasks/config.md
@@ -1,12 +1,16 @@
# Transfering the config to/from the database
-!!! danger
- This is a Work In Progress, not usable just yet.
-
{! backend/administration/CLI_tasks/general_cli_task_info.include !}
## Transfer config from file to DB.
+!!! note
+ You need to add the following to your config before executing this command:
+
+ ```elixir
+ config :pleroma, configurable_from_database: true
+ ```
+
```sh tab="OTP"
./bin/pleroma_ctl config migrate_to_db
```
@@ -18,7 +22,15 @@ mix pleroma.config migrate_to_db
## Transfer config from DB to `config/env.exported_from_db.secret.exs`
-To delete transfered settings from database optional flag `-d` can be used. <env> is `prod` by default.
+!!! note
+ In-Database configuration will still be applied after executing this command unless you set the following in your config:
+
+ ```elixir
+ config :pleroma, configurable_from_database: false
+ ```
+
+To delete transfered settings from database optional flag `-d` can be used. `<env>` is `prod` by default.
+
```sh tab="OTP"
./bin/pleroma_ctl config migrate_from_db [--env=<env>] [-d]
```