From 4854531d60ad2c68ccdbf19eed6fe9a6ce1b6797 Mon Sep 17 00:00:00 2001 From: Joris Date: Sat, 19 Aug 2023 15:07:10 +0200 Subject: Use environment variables instead of config file --- bin/dev-server | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/dev-server b/bin/dev-server index 0669d6d..195791c 100755 --- a/bin/dev-server +++ b/bin/dev-server @@ -4,7 +4,14 @@ cd $(dirname "$0")/.. CMD=${1:-run} -RUST_LOG=budget=info cargo-watch \ +export RUST_LOG="budget=info" +export AUTH_SECRET="pMkW8PR7bjhc24bbvZLIEHfcooLzrGIh" +export DB_PATH="database.db" +export MOCK_MAILS="true" +export SECURE_COOKIES="false" +export SOCKET_ADDRESS="0.0.0.0:3000" + +cargo-watch \ --ignore README.md \ --ignore bin \ --ignore sql \ -- cgit v1.2.3