Skip to content

Commit

Permalink
Fixes to run from uberjar
Browse files Browse the repository at this point in the history
  • Loading branch information
RickMoynihan committed Jan 29, 2018
1 parent 560a2a1 commit 294efba
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
6 changes: 3 additions & 3 deletions log-config.edn.example
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
(let [log-pattern "%d{ISO8601} %-5p %20.20c{1} %12X{user} %12X{jobId} %12X{reqId} :: %m%n"
max-backups 7
sparql-log (doto (org.apache.log4j.RollingFileAppender.
(EnhancedPatternLayout. log-pattern)
(org.apache.log4j.EnhancedPatternLayout. log-pattern)
"logs/sparql.log")
(.setMaxBackupIndex max-backups))
drafter-log (doto (org.apache.log4j.RollingFileAppender.
(EnhancedPatternLayout. log-pattern)
(org.apache.log4j.EnhancedPatternLayout. log-pattern)
"logs/drafter.log")
(.setMaxBackupIndex max-backups))]

(set-loggers!
(clj-logging-config.log4j/set-loggers!
["org.openrdf" "drafter" "swirrl-server"]
{:name "drafter"
:level :info
Expand Down
13 changes: 7 additions & 6 deletions resources/system.edn
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
:sparql-update-endpoint #uri #env SPARQL_UPDATE_ENDPOINT}


:drafter.stasher/filecache {}
:drafter.stasher/filecache {} #_{:dir #or [#env STASHER_CACHE_DIR "stasher-cache"]}

:drafter.stasher/cache-thread-pool {}

Expand Down Expand Up @@ -52,8 +52,8 @@
:drafter.routes.sparql/live-sparql-query-route {:repo #ig/ref :drafter.backend.live/endpoint
:timeout-fn #ig/ref [:drafter.timeouts/timeout-query :drafter/live-timeout]}

:drafter.routes.draftsets-api/get-draftsets-handler {:drafter/backend #ig/ref :drafter/backend
:wrap-auth #ig/ref :drafter.middleware/wrap-auth}
:drafter.feature.draftset.list/get-draftsets-handler {:drafter/backend #ig/ref :drafter/backend
:wrap-auth #ig/ref :drafter.middleware/wrap-auth}

:drafter.routes.draftsets-api/get-draftset-handler {:drafter/backend #ig/ref :drafter/backend
:wrap-auth #ig/ref :drafter.middleware/wrap-auth}
Expand Down Expand Up @@ -107,11 +107,12 @@
:drafter.routes.draftsets-api/draftset-claim-handler {:wrap-auth #ig/ref :drafter.middleware/wrap-auth
:drafter/backend #ig/ref :drafter/backend}

:drafter.routes.draftsets-api/get-users-handler {:wrap-auth #ig/ref :drafter.middleware/wrap-auth
#_:drafter.routes.draftsets-api/get-users-handler
:drafter.feature.users.list/get-users-handler {:wrap-auth #ig/ref :drafter.middleware/wrap-auth
:drafter.user/repo #ig/ref :drafter.user/repo}

:drafter.routes/draftsets-api {:get-users-handler #ig/ref :drafter.routes.draftsets-api/get-users-handler
:get-draftsets-handler #ig/ref :drafter.routes.draftsets-api/get-draftsets-handler
:drafter.routes/draftsets-api {:get-users-handler #ig/ref :drafter.feature.users.list/get-users-handler
:get-draftsets-handler #ig/ref :drafter.feature.draftset.list/get-draftsets-handler
:create-draftsets-handler #ig/ref :drafter.routes.draftsets-api/create-draftsets-handler
:get-draftset-handler #ig/ref :drafter.routes.draftsets-api/get-draftset-handler
:delete-draftset-handler #ig/ref :drafter.routes.draftsets-api/delete-draftset-handler
Expand Down

0 comments on commit 294efba

Please sign in to comment.