fix: Add GLOBAL_VENV into skyline devstack plugin script
The devstack project has added GLOBAL_VENV env to adjust the python env. So skyline needs to adjust the same check. Change-Id: I5f5c3d40dc706cca2f2a91b48db50de67cb140e3
This commit is contained in:
parent
ca3b13fd9a
commit
2ceaa1e3ed
@ -157,7 +157,11 @@ function start_skyline {
|
||||
# skyline-apiserver Start
|
||||
#-------------------------
|
||||
|
||||
run_process "skyline" "/usr/local/bin/gunicorn -c /etc/skyline/gunicorn.py skyline_apiserver.main:app"
|
||||
if [[ "$GLOBAL_VENV" == "True" ]]; then
|
||||
run_process "skyline" "$DEVSTACK_VENV/bin/gunicorn -c /etc/skyline/gunicorn.py skyline_apiserver.main:app"
|
||||
else
|
||||
run_process "skyline" "/usr/local/bin/gunicorn -c /etc/skyline/gunicorn.py skyline_apiserver.main:app"
|
||||
fi
|
||||
|
||||
# skyline-console Configuration
|
||||
#-------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user