fix webroot for proxy
This commit is contained in:
@@ -326,7 +326,8 @@ class WOSiteCreateController(CementBaseController):
|
|||||||
dict(help="create WordPress single/multi site with wpsc cache",
|
dict(help="create WordPress single/multi site with wpsc cache",
|
||||||
action='store_true')),
|
action='store_true')),
|
||||||
(['--wpredis'],
|
(['--wpredis'],
|
||||||
dict(help="create WordPress single/multi site with redis cache",
|
dict(help="create WordPress single/multi site "
|
||||||
|
"with redis cache",
|
||||||
action='store_true')),
|
action='store_true')),
|
||||||
(['-le', '--letsencrypt'],
|
(['-le', '--letsencrypt'],
|
||||||
dict(help="configure letsencrypt ssl for the site",
|
dict(help="configure letsencrypt ssl for the site",
|
||||||
@@ -342,8 +343,9 @@ class WOSiteCreateController(CementBaseController):
|
|||||||
dest='wppass')),
|
dest='wppass')),
|
||||||
(['--proxy'],
|
(['--proxy'],
|
||||||
dict(help="create proxy for site", nargs='+')),
|
dict(help="create proxy for site", nargs='+')),
|
||||||
(['--vhostonly'],
|
(['--vhostonly'], dict(help="only create vhost and database "
|
||||||
dict(help="only create vhost and database without installing WordPress", nargs='+')),
|
"without installing WordPress",
|
||||||
|
action='store_true')),
|
||||||
(['--experimental'],
|
(['--experimental'],
|
||||||
dict(help="Enable Experimental packages without prompt",
|
dict(help="Enable Experimental packages without prompt",
|
||||||
action='store_true')),
|
action='store_true')),
|
||||||
@@ -406,7 +408,7 @@ class WOSiteCreateController(CementBaseController):
|
|||||||
data['proxy'] = True
|
data['proxy'] = True
|
||||||
data['host'] = host
|
data['host'] = host
|
||||||
data['port'] = port
|
data['port'] = port
|
||||||
wo_site_webroot = ""
|
wo_site_webroot = WOVariables.wo_webroot + wo_domain
|
||||||
|
|
||||||
if self.app.pargs.php73:
|
if self.app.pargs.php73:
|
||||||
data = dict(site_name=wo_domain, www_domain=wo_www_domain,
|
data = dict(site_name=wo_domain, www_domain=wo_www_domain,
|
||||||
@@ -461,10 +463,10 @@ class WOSiteCreateController(CementBaseController):
|
|||||||
data['basic'] = True
|
data['basic'] = True
|
||||||
|
|
||||||
if (cache == 'wpredis'):
|
if (cache == 'wpredis'):
|
||||||
cache = 'wpredis'
|
cache = 'wpredis'
|
||||||
data['wpredis'] = True
|
data['wpredis'] = True
|
||||||
data['basic'] = False
|
data['basic'] = False
|
||||||
self.app.pargs.wpredis = True
|
self.app.pargs.wpredis = True
|
||||||
|
|
||||||
# Check rerequired packages are installed or not
|
# Check rerequired packages are installed or not
|
||||||
wo_auth = site_package_check(self, stype)
|
wo_auth = site_package_check(self, stype)
|
||||||
|
|||||||
Reference in New Issue
Block a user