Initial commit - realms platform

This commit is contained in:
doomtube 2026-01-05 22:54:27 -05:00
parent c590ab6d18
commit c717c3751c
234 changed files with 74103 additions and 15231 deletions

View file

@ -0,0 +1,7 @@
-- Create Nakama database for game server
-- This runs before init.sql (alphabetically sorted)
-- Note: This runs in the context of the postgres database
-- Create the nakama database if it doesn't exist
SELECT 'CREATE DATABASE nakama'
WHERE NOT EXISTS (SELECT FROM pg_database WHERE datname = 'nakama')\gexec

View file

@ -0,0 +1,11 @@
#!/bin/bash
# Create Nakama database for game server
# This script runs before init.sql (alphabetically)
set -e
psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" --dbname "postgres" <<-EOSQL
CREATE DATABASE nakama;
GRANT ALL PRIVILEGES ON DATABASE nakama TO $POSTGRES_USER;
EOSQL
echo "Nakama database created successfully"

File diff suppressed because it is too large Load diff