diff --git a/docker-compose.yaml b/docker-compose.yaml index f5514b91..dc83efd0 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -2,10 +2,10 @@ services: lndg: build: . volumes: - - /root/.lnd:/root/.lnd + - /root/.lnd:/root/.lnd:ro command: - sh - -c - - python initialize.py -net 'mainnet' -server 'localhost:10009' -d && python manage.py migrate && supervisord && python manage.py runserver 0.0.0.0:8000 + - python initialize.py -net 'mainnet' -server 'localhost:10009' -d && python manage.py migrate && python manage.py collectstatic --no-input && supervisord && python manage.py runserver 0.0.0.0:8000 ports: - 8889:8000 \ No newline at end of file diff --git a/gui/templates/home.html b/gui/templates/home.html index e131f9d0..a9956bfc 100644 --- a/gui/templates/home.html +++ b/gui/templates/home.html @@ -408,7 +408,7 @@

Update Auto Rebalancer Settings

- + diff --git a/initialize.py b/initialize.py index 2c9e32b4..918e9324 100644 --- a/initialize.py +++ b/initialize.py @@ -5,11 +5,9 @@ def write_settings(node_ip, lnd_dir_path, lnd_network, lnd_rpc_server, whitenois #Generate a unique secret to be used for your django site secret = secrets.token_urlsafe(64) if whitenoise: - sfl = '#' wnl = """ 'whitenoise.middleware.WhiteNoiseMiddleware',""" else: - sfl = '' wnl = '' settings_file = '''""" Django settings for lndg project. @@ -51,7 +49,7 @@ def write_settings(node_ip, lnd_dir_path, lnd_network, lnd_rpc_server, whitenois 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', - %s'django.contrib.staticfiles', + 'django.contrib.staticfiles', 'django.contrib.humanize', 'gui', 'rest_framework', @@ -141,7 +139,7 @@ def write_settings(node_ip, lnd_dir_path, lnd_network, lnd_rpc_server, whitenois STATIC_URL = 'static/' STATIC_ROOT = os.path.join(BASE_DIR, 'gui/static/') DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField' -''' % (secret, debug, node_ip, lnd_dir_path, lnd_network, lnd_rpc_server, sfl, wnl) +''' % (secret, debug, node_ip, lnd_dir_path, lnd_network, lnd_rpc_server, wnl) try: f = open("lndg/settings.py", "x") f.close()