mirror of
https://github.com/Xevion/Pac-Man.git
synced 2026-01-31 00:24:59 -06:00
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.
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
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
|
||||
Reference in New Issue
Block a user