Added init-sqlx target to justfile, to quickly get sqlx up to speed
This commit is contained in:
parent
9f1d18f602
commit
2572fcbffd
1 changed files with 6 additions and 0 deletions
6
justfile
6
justfile
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue