TTime/Justfile
2024-02-12 13:12:06 +01:00

21 lines
No EOL
697 B
Makefile

# 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!"