Bottle:启用错误输出到浏览器而不是查看 error_log
Bottle: Enabling errors output to the browser instead of viewing error_log
我正在尝试弄清楚如何始终通过 ssh 将错误输出到浏览器而不是 logginf,并且 'tail -f error_log' ?
在开发实例中我们刚刚做了 debug =True
,现在在生产服务器中?
这是我的配置:
DocumentRoot /home/nikos/public_html
<Directory /home/nikos/public_html>
Require all granted
</Directory>
Alias /static /home/nikos/public_html/static
<Directory /home/nikos/public_html/static>
Options +Indexes
</Directory>
WSGIPassAuthorization On
WSGIDaemonProcess clientele user=nikos group=nikos home=/home/nikos/public_html
WSGIScriptAlias /clientele /home/nikos/public_html/clientele.py process-group=clientele application-group=%{GLOBAL}
WSGIDaemonProcess downloads user=nikos group=nikos home=/home/nikos/public_html
WSGIScriptAlias /downloads /home/nikos/public_html/downloads.py process-group=downloads application-group=%{GLOBAL}
WSGIDaemonProcess www user=nikos group=nikos home=/home/nikos/public_html
WSGIScriptAliasMatch ^/(?!phpmyadmin) /home/nikos/public_html/www.py process-group=www application-group=%{GLOBAL}
debug flag 可能会如您所愿:
import bottle
# during your init
bottle.debug(True)
但我想重申:你不应该这样做。这是一个 security hole.
我正在尝试弄清楚如何始终通过 ssh 将错误输出到浏览器而不是 logginf,并且 'tail -f error_log' ?
在开发实例中我们刚刚做了 debug =True
,现在在生产服务器中?
这是我的配置:
DocumentRoot /home/nikos/public_html
<Directory /home/nikos/public_html>
Require all granted
</Directory>
Alias /static /home/nikos/public_html/static
<Directory /home/nikos/public_html/static>
Options +Indexes
</Directory>
WSGIPassAuthorization On
WSGIDaemonProcess clientele user=nikos group=nikos home=/home/nikos/public_html
WSGIScriptAlias /clientele /home/nikos/public_html/clientele.py process-group=clientele application-group=%{GLOBAL}
WSGIDaemonProcess downloads user=nikos group=nikos home=/home/nikos/public_html
WSGIScriptAlias /downloads /home/nikos/public_html/downloads.py process-group=downloads application-group=%{GLOBAL}
WSGIDaemonProcess www user=nikos group=nikos home=/home/nikos/public_html
WSGIScriptAliasMatch ^/(?!phpmyadmin) /home/nikos/public_html/www.py process-group=www application-group=%{GLOBAL}
debug flag 可能会如您所愿:
import bottle
# during your init
bottle.debug(True)
但我想重申:你不应该这样做。这是一个 security hole.