Skip to content

Save ~10 minutes on source installation

Alex Gleason requested to merge optional-config into develop

The source install docs instruct you to generate instance config with the following command:

mix pleroma.instance gen

However, this compiles Pleroma and all of its dependencies in dev mode, just to run this single mix task. We then instruct the user to compile Pleroma and all its dependencies all over again in prod mode:

MIX_ENV=prod mix ecto.migrate

I feel this does not respect the user's time.

By making prod.secret.exs optional, we can run MIX_ENV=prod mix pleroma.instance gen instead, and avoid ever compiling Pleroma in dev mode. This saves about 10 minutes on installation time.

Downstream MR: https://gitlab.com/soapbox-pub/soapbox/-/merge_requests/23

Edited by Alex Gleason

Merge request reports