Added init-sqlx target to justfile, to quickly get sqlx up to speed

This commit is contained in:
Imbus 2023-10-21 00:02:58 +02:00
parent 9f1d18f602
commit 2572fcbffd

View file

@ -33,6 +33,12 @@ build-container-release:
start-release: build-container-release remove-podman-containers
{{runtime}} run -d -p 8080:8080 --name frostbyte fb-server
init-sqlx:
echo "DATABASE_URL=sqlite:debug.db" > server/.env
cd server && sqlx database create
cd server && sqlx migrate run
cd server && cargo sqlx prepare
# Removes and stops any containers related to the project
[private]
remove-podman-containers: