Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • pleroma pleroma
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 647
    • Issues 647
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 89
    • Merge requests 89
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • PleromaPleroma
  • pleromapleroma
  • Merge requests
  • !3407

gitignore runtime.exs

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Alex Gleason requested to merge gitignore-runtime-exs into develop May 16, 2021
  • Overview 0
  • Commits 2
  • Pipelines 1
  • Changes 1

Elixir 1.11 introduced config/runtime.exs:

For runtime configuration, you can use the config/runtime.exs file. It is executed right before applications start in both Mix and releases (assembled with mix release).

It's a regular config file, but you can change it without needing to recompile your app.

This is great because nothing normally in prod.secret.exs needs to be present at compile-time. We could potentially instruct users to:

mv config/{generated_config.exs,runtime.exs}

and they would not have to recompile Pleroma afterwards. This would save even more time during install time (!3406 (merged)) and make it a lot easier for users to edit their config.

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

Edited May 16, 2021 by Alex Gleason
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: gitignore-runtime-exs