Stop specifying --ip and --port on the command-line

JUPYTERHUB_SERVICE_URL env is already enough and has been around for some time

Specifying CLI args can cause some issues for custom entrypoints
This commit is contained in:
Min RK
2021-03-11 15:49:35 +01:00
parent 6535cc6bab
commit e75dd1b79c

View File

@@ -999,17 +999,6 @@ class Spawner(LoggingConfigurable):
"""
args = []
if self.ip:
args.append('--ip=%s' % _quote_safe(self.ip))
if self.port:
args.append('--port=%i' % self.port)
elif self.server and self.server.port:
self.log.warning(
"Setting port from user.server is deprecated as of JupyterHub 0.7."
)
args.append('--port=%i' % self.server.port)
if self.notebook_dir:
notebook_dir = self.format_string(self.notebook_dir)
args.append('--notebook-dir=%s' % _quote_safe(notebook_dir))