Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
pd2af
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
2
Merge Requests
2
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Metrics
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
External Wiki
External Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
elixir
pd2af
pd2af
Commits
977c3bd4
Verified
Commit
977c3bd4
authored
Jul 29, 2020
by
Yohan Jarosz
🐶
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use environment variables
parent
276c2051
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
3 deletions
+7
-3
code/start-server.rkt
code/start-server.rkt
+3
-1
html/generated/.gitkeep
html/generated/.gitkeep
+0
-0
server/settings.rkt
server/settings.rkt
+4
-2
No files found.
code/start-server.rkt
View file @
977c3bd4
...
...
@@ -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"
)
)
html/generated/.gitkeep
0 → 100644
View file @
977c3bd4
server/settings.rkt
View file @
977c3bd4
...
...
@@ -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
)))
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment