aboutsummaryrefslogtreecommitdiff
path: root/bin/dev-server
diff options
context:
space:
mode:
authorJoris2023-08-19 15:07:10 +0200
committerJoris2023-08-19 15:08:27 +0200
commit4854531d60ad2c68ccdbf19eed6fe9a6ce1b6797 (patch)
tree9b0951fbfe13e382c545f942ad1fac0558f07227 /bin/dev-server
parent4e675127922e455b347246e81178d8c076720aea (diff)
Use environment variables instead of config file
Diffstat (limited to 'bin/dev-server')
-rwxr-xr-xbin/dev-server9
1 files changed, 8 insertions, 1 deletions
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 \