From 376e20f7094da44b1a4ec67d5b3f1dabdb3dbb18 Mon Sep 17 00:00:00 2001 From: Matthias Andreas Benkard Date: Sat, 5 May 2012 18:01:01 +0200 Subject: Move config.sexp to resources/. --- config.sexp.sample | 22 ---------------------- resources/config.sexp.sample | 22 ++++++++++++++++++++++ src/mulk/benki/config.clj | 2 +- 3 files changed, 23 insertions(+), 23 deletions(-) delete mode 100644 config.sexp.sample create mode 100644 resources/config.sexp.sample diff --git a/config.sexp.sample b/config.sexp.sample deleted file mode 100644 index bebb7d0..0000000 --- a/config.sexp.sample +++ /dev/null @@ -1,22 +0,0 @@ -;;;; -*- mode: clojure; coding: utf-8 -*- - -{:database {:classname "org.postgresql.Driver" - :subprotocol "postgresql" - :subname "//localhost:5432/benki" - :user "benki" - :password ""} - :websocket-base "ws://localhost:3001" - :base-uri "http://localhost:3001" - :tag-base "example.com" - :web-port 3001 - :mode :production ;or :dev - :xmpp {:user "benki" - :service-name "example.com" - :server "jabber.example.com" - :port 5222 - :password "" - :sasl true - :verify-cert true - :tls :required} ;or one of: true, false - } - diff --git a/resources/config.sexp.sample b/resources/config.sexp.sample new file mode 100644 index 0000000..bebb7d0 --- /dev/null +++ b/resources/config.sexp.sample @@ -0,0 +1,22 @@ +;;;; -*- mode: clojure; coding: utf-8 -*- + +{:database {:classname "org.postgresql.Driver" + :subprotocol "postgresql" + :subname "//localhost:5432/benki" + :user "benki" + :password ""} + :websocket-base "ws://localhost:3001" + :base-uri "http://localhost:3001" + :tag-base "example.com" + :web-port 3001 + :mode :production ;or :dev + :xmpp {:user "benki" + :service-name "example.com" + :server "jabber.example.com" + :port 5222 + :password "" + :sasl true + :verify-cert true + :tls :required} ;or one of: true, false + } + diff --git a/src/mulk/benki/config.clj b/src/mulk/benki/config.clj index cd3c8b7..0e9429e 100644 --- a/src/mulk/benki/config.clj +++ b/src/mulk/benki/config.clj @@ -2,4 +2,4 @@ (:refer-clojure)) (def benki-config - (atom (read-string (slurp "config.sexp")))) + (atom (read-string (slurp (.getFile (clojure.java.io/resource "config.sexp")))))) -- cgit v1.2.3