Commit cc45f765 authored by Alexandre Delanoë's avatar Alexandre Delanoë

[ADM!] clean ini file. Breaking ini configuration.

parent 2e33cf4a
Pipeline #882 failed with stage
[gargantext] [gargantext]
MASTER_USER = gargantua MASTER_USER = gargantua
[django]
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
# SECURITY WARNING: keep the secret key used in production secret! # SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = PASSWORD_TO_CHANGE SECRET_KEY = PASSWORD_TO_CHANGE
# Space-separated list of hosts
ALLOWED_HOSTS = localhost [database]
# Time-zone, possible values here: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
TIME_ZONE = Europe/Paris
# PostgreSQL access # PostgreSQL access
DB_HOST = 127.0.0.1 DB_HOST = 127.0.0.1
DB_PORT = 5432 DB_PORT = 5432
...@@ -18,13 +12,6 @@ DB_NAME = gargandbV5 ...@@ -18,13 +12,6 @@ DB_NAME = gargandbV5
DB_USER = gargantua DB_USER = gargantua
DB_PASS = PASSWORD_TO_CHANGE DB_PASS = PASSWORD_TO_CHANGE
# Logs # Logs
LOG_FILE = /var/log/gargantext/backend/django.log LOG_FILE = /var/log/gargantext/backend.log
LOG_LEVEL = DEBUG LOG_LEVEL = DEBUG
LOG_FORMATTER = verbose LOG_FORMATTER = verbose
# Pidfile of django backend test server
TESTSERVER_PIDFILE = /tmp/gargantext_testserver.pid
# Celery
CELERYD_PID_FILE = /tmp/celery.pid
CELERYD_LOG_FILE = /var/log/gargantext/backend/celery.log
CELERYD_LOG_LEVEL = DEBUG
...@@ -121,7 +121,7 @@ databaseParameters fp = do ...@@ -121,7 +121,7 @@ databaseParameters fp = do
Left e -> panic (pack $ "No ini file error" <> show e) Left e -> panic (pack $ "No ini file error" <> show e)
Right ini' -> ini' Right ini' -> ini'
let val x = case (lookupValue (pack "django") (pack x) ini'') of let val x = case (lookupValue (pack "database") (pack x) ini'') of
Left _ -> panic (pack $ "no" <> x) Left _ -> panic (pack $ "no" <> x)
Right p' -> unpack p' Right p' -> unpack p'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment