diff --git a/config/runtime.exs b/config/runtime.exs index 53255633e..72308a5a1 100644 --- a/config/runtime.exs +++ b/config/runtime.exs @@ -28,11 +28,9 @@ config :nerves_hub, dns_cluster_query: dns_cluster_query # Allow for all environments to override the database url if env!("DATABASE_URL", :string!, nil) do - config :nerves_hub, NervesHub.Repo, - url: env!("DATABASE_URL", :string!) + config :nerves_hub, NervesHub.Repo, url: env!("DATABASE_URL", :string!) - config :nerves_hub, NervesHub.ObanRepo, - url: env!("DATABASE_URL", :string!) + config :nerves_hub, NervesHub.ObanRepo, url: env!("DATABASE_URL", :string!) end config :nerves_hub, diff --git a/lib/nerves_hub_web/plugs/configure_uploads.ex b/lib/nerves_hub_web/plugs/configure_uploads.ex index 49a877d36..165f59d09 100644 --- a/lib/nerves_hub_web/plugs/configure_uploads.ex +++ b/lib/nerves_hub_web/plugs/configure_uploads.ex @@ -4,7 +4,6 @@ defmodule NervesHubWeb.Plugs.ConfigureUploads do def init(_opts), do: [] def call(conn, _opts) do - if local_uploads?() do conn |> NervesHubWeb.Plugs.FileUpload.call([])