Verified Commit 977c3bd4 authored by Yohan Jarosz's avatar Yohan Jarosz 🐶

use environment variables

parent 276c2051
......@@ -5,12 +5,14 @@
;
; make background process: 'sudo -b nohup racket start-server.rkt'
(serve/servlet
translator
#:listen-ip #f ; #f - open to external http requests
#:port 80 ; standard port
; #:servlet-regexp #rx"" ; capture all top-level requests
#:servlet-regexp #rx"/translate"
#:extra-files-paths (list (build-path "../html"))
#:extra-files-paths (list (build-path (getenv "SRV_ROOT") "html"))
#:launch-browser? #f
#:log-file (getenv "LOGFILE")
)
......@@ -6,7 +6,7 @@
(hash
; 'root-url "http://pd2af.me"
;'root-url "http://188.166.159.222"
'root-url "http://localhost:8080"
'root-url (getenv "ROOT_URL")
'paths
(hash
'inwin-win7 "../../../../../../../../denis_core/projects/pd2af/html/generated"
......@@ -14,7 +14,7 @@
'digitalocean "/server/pd2af/html/generated"
; 'pd2af.me "/server/pd2af/static/generated"
; 'pd2af.org "/home/jpellet/pd2af/server/static/generated"
'lcsb "/srv/pd2af/html/generated"
'lcsb (build-path (getenv "SRV_ROOT") "html" "generated")
)
)
)
......@@ -26,3 +26,5 @@
((empty? pathlst) settings)
(else (get-settings-rec (hash-ref settings (car pathlst)) (cdr pathlst)))))))
(get-settings-rec settings path)))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment