|
@ -163,9 +163,9 @@ class EEDebugController(CementBaseController): |
|
|
"conf.d/upstream.conf " |
|
|
"conf.d/upstream.conf " |
|
|
"| grep 9001")): |
|
|
"| grep 9001")): |
|
|
Log.info(self, "Enabling PHP debug") |
|
|
Log.info(self, "Enabling PHP debug") |
|
|
data = dict(php="9001", debug="9001") |
|
|
data = dict(php="9001", debug="9001", hhvm="9001") |
|
|
Log.info(self, 'Writting the Nginx debug configration to file ' |
|
|
Log.debug(self, 'Writting the Nginx debug configration to file' |
|
|
'/etc/nginx/conf.d/upstream.conf ') |
|
|
' /etc/nginx/conf.d/upstream.conf ') |
|
|
ee_nginx = open('/etc/nginx/conf.d/upstream.conf', |
|
|
ee_nginx = open('/etc/nginx/conf.d/upstream.conf', |
|
|
encoding='utf-8', mode='w') |
|
|
encoding='utf-8', mode='w') |
|
|
self.app.render((data), 'upstream.mustache', out=ee_nginx) |
|
|
self.app.render((data), 'upstream.mustache', out=ee_nginx) |
|
@ -183,7 +183,7 @@ class EEDebugController(CementBaseController): |
|
|
"/etc/nginx/conf.d/upstream.conf " |
|
|
"/etc/nginx/conf.d/upstream.conf " |
|
|
"| grep 9001"): |
|
|
"| grep 9001"): |
|
|
Log.info(self, "Disabling PHP debug") |
|
|
Log.info(self, "Disabling PHP debug") |
|
|
data = dict(php="9000", debug="9001") |
|
|
data = dict(php="9000", debug="9001", hhvm="8000") |
|
|
Log.debug(self, 'Writting the Nginx debug configration to file' |
|
|
Log.debug(self, 'Writting the Nginx debug configration to file' |
|
|
' /etc/nginx/conf.d/upstream.conf ') |
|
|
' /etc/nginx/conf.d/upstream.conf ') |
|
|
ee_nginx = open('/etc/nginx/conf.d/upstream.conf', |
|
|
ee_nginx = open('/etc/nginx/conf.d/upstream.conf', |
|
|