Transfering the config to/from the database


This is a Work In Progress, not usable just yet.

Every command should be ran as the pleroma user from it's home directory. For example if you are superuser, you would have to wrap the command in su pleroma -s $SHELL -lc "$COMMAND".

From source note about MIX_ENV

The mix command should be prefixed with the name of environment your Pleroma server is running in, usually it's MIX_ENV=prod

Transfer config from file to DB.

 ./bin/pleroma_ctl config migrate_to_db
mix pleroma.config migrate_to_db

Transfer config from DB to config/env.exported_from_db.secret.exs

 ./bin/pleroma_ctl config migrate_from_db <env>
mix pleroma.config migrate_from_db <env>