make production/devel mode gated by env var

This commit is contained in:
xenia 2021-01-10 02:52:25 -05:00
parent 31124451f2
commit d06bb0bc7e
2 changed files with 2 additions and 1 deletions

1
.envrc
View File

@ -1,2 +1,3 @@
export DATABASE_URL="sqlite:lib/crossfire.sqlite"
export CROSSFIRE_DEVEL=1
[ -d lib ] || mkdir -p lib/projects

View File

@ -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/"))