Skip to content

Commit

Permalink
Use mock mailer in dev
Browse files Browse the repository at this point in the history
We were trying to send emails in dev, which was attempting to use
localhost:25, resulting in errors in the repl.
  • Loading branch information
tobias committed Dec 4, 2023
1 parent b60afa3 commit 785266d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dev/user.clj
Expand Up @@ -6,6 +6,7 @@
[errors :as errors]
[system :as system]]
[clojars.db.migrate :as migrate]
[clojars.email :as email]
[clojars.s3 :as s3]
[clojure.java.io :as io]
[clojure.tools.namespace.repl :refer [refresh]]
Expand All @@ -29,6 +30,7 @@
(s3/put-object stats-bucket "all.edn" (ByteArrayInputStream. (.getBytes "{}")))
(assoc (system/new-system (meta-merge (config/config) dev-env))
:error-reporter (errors/stdout-reporter)
:mailer (email/mock-mailer)
:repo-bucket (s3/mock-s3-client)
:stats-bucket stats-bucket)))

Expand Down

0 comments on commit 785266d

Please sign in to comment.