summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2022-11-11 19:19:25 +0100
committerxengineering <me@xengineering.eu>2022-11-11 19:19:25 +0100
commitbdefa29fb2395eec79564145186d9ad1ec45dff3 (patch)
tree85d06816b7ba683d8038aaac6d940c3fb23d76bc /Makefile
parente5760e3e1832ddb74885acbc93e39c9659c90d0c (diff)
downloadceres-bdefa29fb2395eec79564145186d9ad1ec45dff3.tar
ceres-bdefa29fb2395eec79564145186d9ad1ec45dff3.tar.zst
ceres-bdefa29fb2395eec79564145186d9ad1ec45dff3.zip
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.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
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