Justfile for convenience
This commit is contained in:
parent
62662f0c81
commit
c4b5c4ee22
1 changed files with 21 additions and 0 deletions
21
Justfile
Normal file
21
Justfile
Normal file
|
@ -0,0 +1,21 @@
|
|||
# Builds a release container
|
||||
[private]
|
||||
build-container-release:
|
||||
podman build -t temposync-server -f container/Containerfile .
|
||||
|
||||
# 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 temposync temposync-server
|
||||
|
||||
# Removes and stops any containers related to the project
|
||||
[private]
|
||||
remove-podman-containers:
|
||||
podman container rm -f temposync
|
||||
|
||||
# Cleans up everything related to the project
|
||||
clean: remove-podman-containers
|
||||
podman image rm -f temposync-server
|
||||
rm -rf frontend/dist
|
||||
rm -rf frontend/node_modules
|
||||
cd backend && make clean
|
||||
@echo "Cleaned up!"
|
Loading…
Reference in a new issue