Require DATABASE_URL to be set
This commit is contained in:
parent
b2095e98fb
commit
757e670dbb
3 changed files with 10 additions and 2 deletions
4
justfile
4
justfile
|
@ -22,7 +22,7 @@ build-container-server-debug:
|
|||
# Builds a debug container and runs it
|
||||
[private]
|
||||
start-debug: build-container-server-debug remove-podman-containers
|
||||
{{runtime}} run -d -p 8080:8080 --name frostbyte-debug fb-server-debug
|
||||
{{runtime}} run -d -e DATABASE_URL=sqlite:debug.db -p 8080:8080 --name frostbyte-debug fb-server-debug
|
||||
@echo "Debug server started."
|
||||
|
||||
# Builds a release container
|
||||
|
@ -32,6 +32,7 @@ build-container-release:
|
|||
|
||||
# Builds a release container and runs it
|
||||
start-release: build-container-release remove-podman-containers
|
||||
{{runtime}} network create fb_network --ignore
|
||||
{{runtime}} run -d --network fb_network -e DATABASE_URL=sqlite:release.db -p 8080:8080 --name frostbyte fb-server
|
||||
|
||||
init-sqlx:
|
||||
|
@ -43,6 +44,7 @@ init-sqlx:
|
|||
# Removes and stops any containers related to the project
|
||||
[private]
|
||||
remove-podman-containers:
|
||||
{{runtime}} network rm -f fb_network
|
||||
{{runtime}} container rm -f frostbyte
|
||||
{{runtime}} container rm -f frostbyte-debug
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue