mirror of
https://github.com/isledecomp/isle.pizza.git
synced 2026-05-01 18:23:56 +00:00
* Add multiplayer, cloud sync, crash reporting, scene player, and memories features * Fix multiplayer overlay showing "Waiting for ..." with no names * Fix OGL link in README * Update README with architecture, backend setup, environment variables, and CI docs * Fix save editor showing wrong name for orphaned save slots Players.gsi could fall out of sync with save files during cloud sync because the saveSlotWritten event only tracked the slot file and History.gsi for incremental upload, not Players.gsi. This caused slots without a matching Players.gsi entry to display the first player's name due to a fallback to index 0. - Track Players.gsi in saveSlotWritten handler for incremental uploads - Remove broken fallback to player index 0 in name resolution - Hide save slots with no Players.gsi entry from the save editor UI
21 lines
597 B
Docker
21 lines
597 B
Docker
FROM node:22-slim
|
|
|
|
RUN apt-get update && apt-get install -y ca-certificates && rm -rf /var/lib/apt/lists/*
|
|
|
|
WORKDIR /app
|
|
|
|
COPY server/package.json server/package-lock.json ./
|
|
RUN npm install
|
|
|
|
COPY server/src/ ./src/
|
|
COPY server/migrations/ ./migrations/
|
|
COPY server/wrangler.toml server/tsconfig.json ./
|
|
COPY server/.dev.vars* ./
|
|
|
|
EXPOSE 8788
|
|
|
|
# Apply D1 migrations then start wrangler dev.
|
|
# wrangler runs as PID 1 via exec so it receives SIGINT (Ctrl+C).
|
|
CMD node_modules/.bin/wrangler d1 migrations apply isle-pizza --local && \
|
|
exec node_modules/.bin/wrangler dev --ip 0.0.0.0 --port 8788
|