Optimize the devstack setup for wsgi deployment
1. Rename zun_error.log to zun_api.log 2. Start the zun-api and create two tabs in devstack screen: the first tab is for taling the zun_api.log, the second tab is for tailing the zun_access.log Change-Id: I10a75c09e7a577615c331ceb0f422375443afeee Closes-Bug: #1674028
This commit is contained in:
parent
c4c4422601
commit
05b72e7025
@ -408,7 +408,8 @@ function start_zun_api {
|
||||
if [ -f ${enabled_site_file} ] && [ "$ZUN_USE_MOD_WSGI" == "True" ]; then
|
||||
enable_apache_site zun
|
||||
restart_apache_server
|
||||
tail_log zun-api /var/log/$APACHE_NAME/zun_access.log
|
||||
tail_log zun-api-access /var/log/$APACHE_NAME/zun_access.log
|
||||
tail_log zun-api /var/log/$APACHE_NAME/zun_api.log
|
||||
else
|
||||
run_process zun-api "$ZUN_BIN_DIR/zun-api"
|
||||
fi
|
||||
|
@ -27,7 +27,7 @@ Listen %PUBLICPORT%
|
||||
WSGIScriptAlias / %PUBLICWSGI%
|
||||
WSGIProcessGroup zun-api
|
||||
|
||||
ErrorLog /var/log/%APACHE_NAME%/zun_error.log
|
||||
ErrorLog /var/log/%APACHE_NAME%/zun_api.log
|
||||
LogLevel info
|
||||
CustomLog /var/log/%APACHE_NAME%/zun_access.log combined
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user