Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
nomad-lab
nomad-FAIR
Commits
6f3cb481
Commit
6f3cb481
authored
Nov 19, 2020
by
Markus Scheidgen
Browse files
Small fixes to run.sh.
parent
8c596e8c
Pipeline
#87154
passed with stages
in 23 minutes and 40 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
run.sh
View file @
6f3cb481
#!/bin/bash
find gui/build
-type
f | xargs
-L1
bash
-c
'sed "s_/fairdi/nomad/latest/gui_$1/gui_g" $2 > /tmp/temp_file; cp /tmp/temp_file $2;'
--
$1
find gui/build
-type
f
-not
-name
"env.js"
| xargs
-L1
bash
-c
'sed "s_/fairdi/nomad/latest/gui_$1/gui_g" $2 > /tmp/temp_file; cp /tmp/temp_file $2;'
--
$1
params
=()
[
-e
gunicorn.conf
]
&&
params+
=(
--config
gunicorn.conf
)
[
-e
gunicorn.log.conf
]
&&
params+
=(
--log-config
,
gunicorn.log.conf
)
[
-e
gunicorn.log.conf
]
&&
params+
=(
--log-config
gunicorn.log.conf
)
python
-m
gunicorn.app.wsgiapp
"
${
params
[@]
}
"
-b
0.0.0.0:8000 nomad.app:app
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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