Skip to content
This repository has been archived by the owner on Apr 4, 2024. It is now read-only.

Changed webserver's ip from loopback to 0.0.0.0 #11

Merged
merged 1 commit into from
Oct 9, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Belati.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,9 +380,9 @@ def gather_company(self, company_name, proxy_address):
gather_company.crawl_company_employee(company_name, proxy_address, self.project_id)

def start_web_server(self):
log.console_log("{}Starting Django Web Server at http://127.0.0.1:8000/{}".format(Y, W))
log.console_log("{}Starting Django Web Server at http://0.0.0.0:8000/{}".format(Y, W))
py_bin = self.conf.get_config("Environment", "py_bin")
command = "{} web/manage.py runserver".format(py_bin)
command = "{} web/manage.py runserver 0.0.0.0:8000".format(py_bin)
process = subprocess.Popen(shlex.split(command), stdout=subprocess.PIPE)
while True:
output = process.stdout.readline()
Expand Down