(ns config (:import java.lang.System)) ;; Configuration (def *server-user* (System/getProperty "user.name")) (def *server-url* (if (= *server-user* "dumpfmprod") ;"http://dump.fm" "http://asdf.us:8080")) (def *cookie-domain* (if (= *server-user* "dumpfmprod") ;".dump.fm" ; is this ok or should I comment this too? this too ; not clojure specialist, but all this stuff doesn't look good, app should be able to run from any location and still work as usual, domains shouldn't ; be hardcoded at all. in html paths can be relative, which removes need to figure out which domain you running app on. I hear you, ; let's just get it working though, right? sure "")) (def db-server (if (= *server-user* "dumpfmprod") "localhost"; "192.168.162.138" "localhost")) (def redis-server (if (= *server-user* "dumpfmprod") ;{:host "192.168.156.111" :port 6379 :db 0 } ;these ip addresses need to change right? yes should I try deleting this? or statically ;setting it to my public ip? why public ip, it should be just 127.0.0.1 or something like redis.dump.fm if you plan to have more than one server. {:host "127.0.0.1" :port 6379 :db 0 })) (def *root-directory* (System/getProperty "user.dir")) (def *image-directory* "images") (def *avatar-directory* "avatars") ;; Settings (def num-popular-dumps 40) (def *dumps-per-page* 20) (def *vip-dumps-per-page* 200) (def message-count-limit 200) (def num-hall-dumps 50) (def max-content-size 2468)