From 2e8c3f98cac1131bcd390e9e86ccea38ec43ed41 Mon Sep 17 00:00:00 2001 From: Ratstail91 Date: Fri, 3 May 2024 09:27:29 +1000 Subject: [PATCH] Fully tested the remote database Updated docker base image --- Dockerfile | 2 +- README.md | 2 +- tools/debug-startup.sql | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 5cade8a..e42a377 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ -FROM node:21-bookworm-slim +FROM node:22-bookworm-slim WORKDIR "/app" COPY package*.json /app RUN npm install --production diff --git a/README.md b/README.md index dc4185b..74a39e2 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ This server is available via docker hub at krgamestudios/chat-server. # Setup -There are multiple ways to run this app - it can run on it's own via `npm start` (for production) or `npm run dev` (for development). it can also run inside docker using `docker-compose up --build` - run `node configure-script.js` to generate docker-compose.yml and startup.sql. +There are multiple ways to run this app - it can run on it's own via `npm start` (for production) or `npm run dev` (for development). it can also run inside docker using `docker compose up --build` - run `node configure-script.js` to generate docker-compose.yml and startup.sql. To generate an authorization token, use [auth-server](https://github.com/krgamestudios/auth-server). A public-facing development auth-server is available here (tokens are valid for 10 minutes): diff --git a/tools/debug-startup.sql b/tools/debug-startup.sql index 933b986..3adb665 100644 --- a/tools/debug-startup.sql +++ b/tools/debug-startup.sql @@ -1,4 +1,4 @@ #use this while debugging -CREATE DATABASE IF NOT EXISTS chat; -CREATE USER IF NOT EXISTS 'chat'@'%' IDENTIFIED BY 'blastoise'; +CREATE DATABASE chat; +CREATE USER 'chat'@'%' IDENTIFIED BY 'blastoise'; GRANT ALL PRIVILEGES ON chat.* TO 'chat'@'%';