Updated just targets
This commit is contained in:
parent
5c1b810da1
commit
eca82edf4f
1 changed files with 3 additions and 1 deletions
4
Justfile
4
Justfile
|
@ -6,6 +6,7 @@ build-container-release:
|
|||
# Builds a release container and runs it
|
||||
start-release: build-container-release remove-podman-containers
|
||||
podman run -d -e DATABASE_URL=sqlite:release.db -p 8080:8080 --name ttime ttime-server
|
||||
@echo "Started production ttime-server on http://localhost:8080"
|
||||
|
||||
# Removes and stops any containers related to the project
|
||||
[private]
|
||||
|
@ -14,7 +15,7 @@ remove-podman-containers:
|
|||
|
||||
# Saves the release container to a tarball, pigz is just gzip but multithreaded
|
||||
save-release: build-container-release
|
||||
podman save --format=oci-archive ttime-server | pigz -9 > ttime-server-pigz.tar.gz
|
||||
podman save --format=oci-archive ttime-server | pigz -9 > ttime-server.tar.gz
|
||||
|
||||
# Loads the release container from a tarball
|
||||
load-release file:
|
||||
|
@ -25,5 +26,6 @@ clean: remove-podman-containers
|
|||
podman image rm -f ttime-server
|
||||
rm -rf frontend/dist
|
||||
rm -rf frontend/node_modules
|
||||
rm ttime-server.tar.gz
|
||||
cd backend && make clean
|
||||
@echo "Cleaned up!"
|
Loading…
Reference in a new issue