M api/README.md => api/README.md +3 -0
@@ 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`
A api/scripts/dev-launch.sh => api/scripts/dev-launch.sh +5 -0
@@ 0,0 1,5 @@
+#!/bin/sh
+
+export LAURELIN_DB_URL=postgres://laurelin:laurelin@localhost:5432/laurelin
+
+cargo run