summaryrefslogtreecommitdiff
path: root/src/config.clj
diff options
context:
space:
mode:
authortim b <timb@camcompu.home>2010-07-03 18:38:01 -0700
committertim b <timb@camcompu.home>2010-07-03 18:38:01 -0700
commit69804274b58e3b59831bedbe50ff8618de784b88 (patch)
treea92971a07db89364826cdb2a9dcfe4d6c1c50ff3 /src/config.clj
parent41caa07a16baf32ed9f82bc28b4c3a63825ab472 (diff)
context specific cookie domain
Diffstat (limited to 'src/config.clj')
-rw-r--r--src/config.clj13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/config.clj b/src/config.clj
index f09daf8..15834cb 100644
--- a/src/config.clj
+++ b/src/config.clj
@@ -3,17 +3,18 @@
;; Configuration
-(def *cookie-domain* ".dump.fm")
+(def *server-user* (System/getProperty "user.name"))
+;; (if (= (System/getProperty "user.name") "dumpfmprod")
(def *server-url*
- (if (= (System/getProperty "user.name") "dumpfmprod")
+ (if (= *server-user* "dumpfmprod")
"http://dump.fm"
"http://localhost:8080"))
-(def *deployed*
- (if (= (System/getProperty "user.name") "dumpfmprod")
- :prod
- :local))
+(def *cookie-domain*
+ (if (= *server-user* "timb")
+ ""
+ ".dump.fm"))
(def *root-directory* (System/getProperty "user.dir"))
(def *image-directory* "images")