This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-02-22
Channels
- # aws-lambda (2)
- # beginners (195)
- # boot (47)
- # capetown (14)
- # cljs-dev (7)
- # cljsjs (1)
- # cljsrn (1)
- # clojure (103)
- # clojure-berlin (28)
- # clojure-dev (92)
- # clojure-dusseldorf (3)
- # clojure-finland (2)
- # clojure-germany (3)
- # clojure-italy (4)
- # clojure-russia (37)
- # clojure-spec (104)
- # clojure-uk (52)
- # clojured (2)
- # clojurescript (124)
- # community-development (7)
- # core-async (6)
- # cursive (41)
- # datomic (53)
- # dirac (2)
- # emacs (16)
- # hoplon (5)
- # jobs (3)
- # juxt (12)
- # lein-figwheel (6)
- # leiningen (15)
- # luminus (3)
- # off-topic (49)
- # om (5)
- # onyx (13)
- # overtone (27)
- # re-frame (7)
- # reagent (46)
- # ring (3)
- # ring-swagger (11)
- # spacemacs (2)
- # specter (40)
- # sql (6)
- # untangled (149)
- # vim (14)
Is there a way to read value from profiles.clj in project.clj? I'd like to configure migratus in my-app/project.clj:
:migratus {:store :database
:migration-dir "migrations"
:db {:subprotocol "postgresql"
:user ???
:password ???
:dbname ???
:host ???}}
I have the db config stored in my-app/profiles.clj:
{:dev {:env {:db-user "xxx"
:db-password "xxx"
:db-host "localhost"
:db-name "xxx"}}}
in project.clj generated by luminus template there's something like this:
:migratus {:store :database :db ~(get (System/getenv) "DATABASE_URL")}
But that doesn't seem to work in my project (unless I really set the environment variables via "export")I guess it works in project generated by luminus because of this: https://github.com/yogthos/migratus-lein/blob/master/src/leiningen/migratus.clj#L41
@weavejester @yogthos any ideas?
you’d pretty much have to do what the luminus template is doing using the migratus-lein plugin
It claims to be packaging files from a dependency:
Including protobuf-java-2.6.1.jar
Dropping com/google/protobuf/AbstractMessage$Builder.class
Dropping com/google/protobuf/AbstractMessage.class
Dropping com/google/protobuf/AbstractMessageLite$Builder$LimitedInputStream.class
but it is (in DEBUG mode) emitting spurious (I think) warnings about dropping files. And the files that end up in the standalone Uber jar don’t seem to be right.In the AOT’ed JAR file:
-rw-rw-rw- 1932 30-Oct-2013 12:54:18 com/google/protobuf/UnmodifiableLazyStringList.class
In protobuf-java-2.6.1.jar:
-rw-rw-rw- 3830 22-Oct-2014 16:35:54 com/google/protobuf/UnmodifiableLazyStringList.class
This is with 2.7.1. There is only one version of protobuf-java (2.6.1) from lein deps :tree
and no warnings about it.