Files
Pac-Man/pacman-server/Justfile
Xevion de7c656b61 refactor(just): split monolithic Justfile into project-specific modules
Organize recipes into dedicated Justfiles for pacman, server, and web components. Root Justfile now serves as a thin facade with common aliases pointing to submodule recipes.
2025-12-30 02:16:18 -06:00

28 lines
643 B
Makefile

set shell := ["bash", "-c"]
# Create a postgres container for the server
postgres:
bun run scripts/postgres.ts
# Build the server docker image
[no-cd]
image:
docker build \
--platform linux/amd64 \
--file ./pacman-server/Dockerfile \
--tag pacman-server \
.
# Build and run the server in a Docker container
[no-cd]
run: image
docker rm --force --volumes pacman-server 2>/dev/null || true
docker run \
--rm \
--stop-timeout 2 \
--name pacman-server \
--publish 3000:3000 \
--env PORT=3000 \
--env-file pacman-server/.env \
pacman-server