diff --git a/.envrc b/.envrc index 6d7f1ca..e50ab45 100644 --- a/.envrc +++ b/.envrc @@ -1,2 +1,3 @@ export DATABASE_URL="sqlite:lib/crossfire.sqlite" +export CROSSFIRE_DEVEL=1 [ -d lib ] || mkdir -p lib/projects diff --git a/crossfire/server.rkt b/crossfire/server.rkt index abb725f..1f5870e 100644 --- a/crossfire/server.rkt +++ b/crossfire/server.rkt @@ -32,7 +32,7 @@ (define *server-node-id* 0) -(define *production?* #f) +(define *production?* (not (getenv "CROSSFIRE_DEVEL"))) ;; XXX : platform-specific (define *config-root* (if *production?* "/etc/" "etc/"))