From b8df2878f6b265a21ae80452d6e0800dccc42f34 Mon Sep 17 00:00:00 2001 From: Jonni Liljamo Date: Fri, 17 Feb 2023 12:46:46 +0200 Subject: [PATCH] feat(api): add dev-launch.sh script --- api/README.md | 3 +++ api/scripts/dev-launch.sh | 5 +++++ 2 files changed, 8 insertions(+) create mode 100755 api/scripts/dev-launch.sh diff --git a/api/README.md b/api/README.md index e201f7f..85bee79 100644 --- a/api/README.md +++ b/api/README.md @@ -14,6 +14,9 @@ database that the other script sets up. As in, it will run down.sql, and then up.sql again, useful for making sure migrations work correctly, and for experimenting. +`scripts/dev-launch.sh` can be used to launch the API with correct +environment variables. + ## Misc Notes ### Generate new migrations `~/.cargo/bin/diesel migration generate migration_name` diff --git a/api/scripts/dev-launch.sh b/api/scripts/dev-launch.sh new file mode 100755 index 0000000..34cefef --- /dev/null +++ b/api/scripts/dev-launch.sh @@ -0,0 +1,5 @@ +#!/bin/sh + +export LAURELIN_DB_URL=postgres://laurelin:laurelin@localhost:5432/laurelin + +cargo run -- 2.44.1