Skip to content

Commit

Permalink
Store prod system into an atom
Browse files Browse the repository at this point in the history
  • Loading branch information
vharmain committed Jan 1, 2025
1 parent d00e41e commit 98c912d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion webapp/src/clj/lipas/backend/system.clj
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,10 @@
(update-in [:lipas/aws :secret-access-key] mask)))
system)))

(def current-system (atom nil))

(defn stop-system! [system]
(ig/halt! system))

(defn -main [& _args]
(start-system! config/system-config))
(reset! current-system (start-system! config/system-config)))

0 comments on commit 98c912d

Please sign in to comment.