This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-09-05
Channels
- # 100-days-of-code (1)
- # announcements (9)
- # aws (1)
- # beginners (195)
- # braveandtrue (60)
- # calva (3)
- # cider (36)
- # cljs-dev (3)
- # clojure (124)
- # clojure-canada (13)
- # clojure-dev (18)
- # clojure-germany (2)
- # clojure-italy (2)
- # clojure-losangeles (1)
- # clojure-nl (9)
- # clojure-russia (1)
- # clojure-spec (20)
- # clojure-uk (109)
- # clojurescript (49)
- # core-logic (29)
- # cursive (7)
- # datomic (62)
- # defnpodcast (1)
- # devcards (11)
- # docker (3)
- # duct (6)
- # figwheel (13)
- # figwheel-main (57)
- # fulcro (2)
- # graphql (11)
- # hyperfiddle (3)
- # jobs (5)
- # jobs-discuss (9)
- # leiningen (2)
- # lumo (1)
- # off-topic (12)
- # onyx (2)
- # pedestal (1)
- # portkey (2)
- # rdf (1)
- # re-frame (39)
- # reitit (13)
- # remote-jobs (2)
- # rum (5)
- # shadow-cljs (82)
- # tools-deps (48)
- # unrepl (3)
- # vim (12)
- # yada (1)
Is there a clean way to receive the jetty port
from main
arguments and merge it with duct.server.http/jetty
in config?
@ijmo is there a requirement to have it through command line args? Can you use an ENV var? If so, you can capture it in the duct config map via #duct/env ["<YOUR_ENV_VAR_NAME>" Str :or "<SOME_DEFAULT_VALUE>"]
Iām trying to implement programmatic migrations by reifying the ragtime migration protocol, as so:
(defn up! [db]
;; TODO
nil)
(defn down! [db]
;; TODO
nil)
(defmethod ig/init-key ::migration [k _]
(reify p/Migration
(id [_] k)
(run-up! [_ db] (up! (:db-spec db)))
(run-down! [_ db] (down! (:db-spec db)))))
and I am referencing the component under the :migrations
key for the migrator. The migrator successfully runs the run-up!
, but I get IllegalArgumentException No implementation of method: :run-down! of protocol: #'ragtime.protocols/Migration found for class: nil clojure.core/-cache-protocol-fn (core_deftype.clj:583)
on the run-down!
. Can anyone see why that would be the case?