summaryrefslogtreecommitdiffstats
path: root/api/api-prepare.sh
diff options
context:
space:
mode:
Diffstat (limited to 'api/api-prepare.sh')
-rwxr-xr-xapi/api-prepare.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/api/api-prepare.sh b/api/api-prepare.sh
index f2be48909..7632d9da9 100755
--- a/api/api-prepare.sh
+++ b/api/api-prepare.sh
@@ -33,6 +33,9 @@ close-on-exec = 1
daemonize= /var/log/yardstick/uwsgi.log
socket = /var/run/yardstick.sock
EOF
+ if [[ "${YARDSTICK_VENV}" ]];then
+ echo "virtualenv = ${YARDSTICK_VENV}" >> "${uwsgi_config}"
+ fi
fi
# nginx config