Skip to content

Commit f23f801

Browse files
committed
throw error when proxy option provided with other site types
1 parent b4c271b commit f23f801

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ee/cli/plugins/site.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,8 @@ def default(self):
368368
port = '80' if len(proxyinfo) < 2 else proxyinfo[1]
369369
elif stype is None and not self.app.pargs.proxy:
370370
stype, cache = 'html', 'basic'
371+
elif stype and self.app.pargs.proxy:
372+
Log.error("proxy should not be used with other site types")
371373

372374
if not self.app.pargs.site_name:
373375
try:
@@ -475,8 +477,6 @@ def default(self):
475477

476478
if 'proxy' in data.keys() and data['proxy']:
477479
addNewSite(self, ee_domain, stype, cache, ee_site_webroot)
478-
# Service Nginx Reload
479-
EEService.reload_service(self, 'nginx')
480480
Log.info(self, "Successfully created site"
481481
" http://{0}".format(ee_domain))
482482
return

0 commit comments

Comments
 (0)