From bdefa29fb2395eec79564145186d9ad1ec45dff3 Mon Sep 17 00:00:00 2001 From: xengineering <me@xengineering.eu> Date: Fri, 11 Nov 2022 19:19:25 +0100 Subject: Restrict configuration to config file This drops also the -d flag and the database/user config option. The -d flag used to override specific parts of the config file. This is just confusing behaviour. Instead a new config/debug.json file is introduced with useful default values. Instead of configuring the database user via the database/user entry in the config file, the user is determined from the Linux user of the server process. This enforces that a database user with the same name as the Linux user is configured which is already described in the README. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 15e100b..c31c0d7 100644 --- a/Makefile +++ b/Makefile @@ -33,4 +33,4 @@ install: all install -Dm 644 sql/0002_migration.sql $(DESTDIR)$(PREFIX)/share/ceres/migrations/0002_migration.sql debug: - go run main.go -d -c config/default.json + go run main.go -c config/debug.json -- cgit v1.2.3-70-g09d2