Rev1914, Fix command line sitePublish command
This commit is contained in:
parent
d57d82f439
commit
22059e71a2
2 changed files with 6 additions and 2 deletions
|
@ -10,7 +10,7 @@ class Config(object):
|
|||
|
||||
def __init__(self, argv):
|
||||
self.version = "0.5.2"
|
||||
self.rev = 1913
|
||||
self.rev = 1914
|
||||
self.argv = argv
|
||||
self.action = None
|
||||
self.config_file = "zeronet.conf"
|
||||
|
|
|
@ -368,7 +368,11 @@ class Actions(object):
|
|||
else:
|
||||
# Already running, notify local client on new content
|
||||
logging.info("Sending siteReload")
|
||||
if config.fileserver_ip == "*":
|
||||
my_peer = Peer("127.0.0.1", config.fileserver_port)
|
||||
else:
|
||||
my_peer = Peer(config.fileserver_ip, config.fileserver_port)
|
||||
|
||||
logging.info(my_peer.request("siteReload", {"site": site.address, "inner_path": inner_path}))
|
||||
logging.info("Sending sitePublish")
|
||||
logging.info(my_peer.request("sitePublish", {"site": site.address, "inner_path": inner_path, "diffs": diffs}))
|
||||
|
|
Loading…
Reference in a new issue