make production/devel mode gated by env var
This commit is contained in:
parent
31124451f2
commit
d06bb0bc7e
1
.envrc
1
.envrc
|
@ -1,2 +1,3 @@
|
|||
export DATABASE_URL="sqlite:lib/crossfire.sqlite"
|
||||
export CROSSFIRE_DEVEL=1
|
||||
[ -d lib ] || mkdir -p lib/projects
|
||||
|
|
|
@ -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/"))
|
||||
|
|
Loading…
Reference in New Issue