From 8bb3c404d44e580972dd08c124ffa3b73d275161 Mon Sep 17 00:00:00 2001 From: Kay0u Date: Wed, 2 Oct 2019 19:48:08 +0200 Subject: [PATCH] Fix terminal --- conf/jupyterhub_config.py | 2 +- conf/systemd.service | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/conf/jupyterhub_config.py b/conf/jupyterhub_config.py index e934d9f..f2f0d77 100644 --- a/conf/jupyterhub_config.py +++ b/conf/jupyterhub_config.py @@ -553,7 +553,7 @@ c.ConfigurableHTTPProxy.api_url = 'http://127.0.0.1:__PORT_HTTP_PROXY__' # Some spawners allow shell-style expansion here, allowing you to use # environment variables here. Most, including the default, do not. Consult the # documentation for your spawner to verify! -#c.Spawner.args = [] +c.Spawner.args = ['--config=__FINAL_PATH__/config/jupyter_notebook_config.py'] ## The command used for starting the single-user server. # diff --git a/conf/systemd.service b/conf/systemd.service index 091b67c..cdbad2c 100644 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -3,8 +3,7 @@ Description=Jupyterlab After=syslog.target network.target [Service] -Environment="PATH=__NODE_PATH__:__FINALPATH__/.venv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" -Environment="JUPYTER_CONFIG_DIR=__FINALPATH__/config" +Environment="PATH=__NODE_PATH__:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" ExecStart=/usr/local/bin/pipenv run jupyterhub -f __FINALPATH__/config/jupyterhub_config.py Restart=always RestartSec=10