RUM: Set rum status by the environment.
authorlain <lain@soykaf.club>
Fri, 17 May 2019 13:06:51 +0000 (15:06 +0200)
committerlain <lain@soykaf.club>
Fri, 17 May 2019 13:21:24 +0000 (15:21 +0200)
config/test.exs

index 40db66170f2af4ed98f5f92d051fb043bf13f92e..e1785d10fe27898a9ddb88d8869a9471b3deb180 100644 (file)
@@ -63,6 +63,10 @@ config :pleroma, :app_account_creation, max_requests: 5
 
 config :pleroma, :http_security, report_uri: "https://endpoint.com"
 
+rum_enabled = System.get_env("RUM_ENABLED") == "true"
+config :pleroma, :database, rum_enabled: rum_enabled
+IO.puts("RUM enabled: #{rum_enabled}")
+
 try do
   import_config "test.secret.exs"
 rescue