Browse Source

Merge branch 'python' of github.com:rtCamp/easyengine into python

bugfixes
harshadyeola 10 years ago
parent
commit
cf5312c385
  1. 11
      ee/cli/plugins/debug.py
  2. 1
      ee/cli/plugins/stack.py

11
ee/cli/plugins/debug.py

@ -103,7 +103,7 @@ class EEDebugController(CementBaseController):
self.trigger_nginx = True
else:
Log.info(self, "Debug for site allready enabled")
Log.info(self, "Nginx debug for site allready enabled")
self.msg = self.msg + ['{0}{1}/logs/error.log'
.format(EEVariables.ee_webroot,
@ -129,7 +129,7 @@ class EEDebugController(CementBaseController):
else:
Log.info(self, "Debug for site allready disabled")
Log.info(self, "Nginx debug for site allready disabled")
else:
Log.info(self, "{0} domain not valid"
.format(self.app.pargs.site_name))
@ -273,7 +273,7 @@ class EEDebugController(CementBaseController):
def debug_wp(self):
"""Start/Stop WordPress debug"""
if self.start and self.app.pargs.site_name:
wp_config = ("{0}{1}/wp-config.php"
wp_config = ("{0}/{1}/wp-config.php"
.format(EEVariables.ee_webroot,
self.app.pargs.site_name))
webroot = "{0}{1}".format(EEVariables.ee_webroot,
@ -301,8 +301,6 @@ class EEDebugController(CementBaseController):
"wp-content/plugins"
.format(webroot,
EEVariables.ee_php_user))
else:
Log.info(self, "WordPress debug log already enabled")
self.msg = self.msg + ['{0}{1}/htdocs/wp-content'
'/debug.log'
@ -337,9 +335,6 @@ class EEDebugController(CementBaseController):
"true);/d\" {0}".format(wp_config))
else:
Log.info(self, "WordPress debug all already disabled")
else:
Log.error(self, "{0} domain not valid"
.format(self.app.pargs.site_name))
else:
Log.error(self, "Missing argument site name")

1
ee/cli/plugins/stack.py

@ -442,6 +442,7 @@ class EEStackController(CementBaseController):
config = configparser.ConfigParser()
config.read('/etc/php5/fpm/pool.d/debug.conf')
config['debug']['listen'] = '127.0.0.1:9001'
config['debug']['rlimit_core'] = 'unlimited'
with open('/etc/php5/fpm/pool.d/debug.conf',
encoding='utf-8', mode='w') as confifile:
Log.debug(self, "writting PHP5 configuration into "

Loading…
Cancel
Save