mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-07 10:04:07 +00:00
update some file names
default config file is now `jupyterhub_config.py`, to be consistent with everything else add config files, runtime files to .gitignore
This commit is contained in:
5
.gitignore
vendored
5
.gitignore
vendored
@@ -4,6 +4,11 @@ node_modules
|
||||
.DS_Store
|
||||
build
|
||||
dist
|
||||
# ignore config file at the top-level of the repo
|
||||
# but not sub-dirs
|
||||
/jupyterhub_config.py
|
||||
jupyterhub_cookie_secret
|
||||
jupyterhub.sqlite
|
||||
share/jupyter/static/components
|
||||
share/jupyter/static/css/style.min.css
|
||||
share/jupyter/static/css/style.min.css.map
|
||||
|
@@ -30,5 +30,5 @@ WORKDIR /srv/jupyterhub/
|
||||
|
||||
EXPOSE 8000
|
||||
|
||||
ONBUILD ADD jupyter_hub_config.py /srv/jupyterhub/jupyter_hub_config.py
|
||||
CMD ["jupyterhub", "-f", "/srv/jupyterhub/jupyter_hub_config.py"]
|
||||
ONBUILD ADD jupyterhub_config.py /srv/jupyterhub/jupyterhub_config.py
|
||||
CMD ["jupyterhub", "-f", "/srv/jupyterhub/jupyterhub_config.py"]
|
||||
|
@@ -93,7 +93,7 @@ class JupyterHubApp(Application):
|
||||
|
||||
generate default config file:
|
||||
|
||||
jupyterhub --generate-config -f myconfig.py
|
||||
jupyterhub --generate-config -f /etc/jupyterhub/jupyterhub.py
|
||||
|
||||
spawn the server on 10.0.1.2:443 with https:
|
||||
|
||||
@@ -110,7 +110,7 @@ class JupyterHubApp(Application):
|
||||
PAMAuthenticator,
|
||||
])
|
||||
|
||||
config_file = Unicode('jupyter_hub_config.py', config=True,
|
||||
config_file = Unicode('jupyterhub_config.py', config=True,
|
||||
help="The config file to load",
|
||||
)
|
||||
generate_config = Bool(False, config=True,
|
||||
|
@@ -11,7 +11,7 @@ def test_help_all():
|
||||
assert '--JupyterHubApp.ip' in out
|
||||
|
||||
def test_generate_config():
|
||||
with NamedTemporaryFile(prefix='jupyter_hub_config', suffix='.py') as tf:
|
||||
with NamedTemporaryFile(prefix='jupyterhub_config', suffix='.py') as tf:
|
||||
cfg_file = tf.name
|
||||
|
||||
out = check_output([sys.executable, '-m', 'jupyterhub',
|
||||
|
Reference in New Issue
Block a user