Rought Draft - No guarantee for commands below to function. NOTE These currently run in the Patreon database, so migrations will fuck up the migration table. Please don't run them, or delete the migration entry that gets added.
Successor to the existing FFR multiplayer server implementation.
-
Create ormconfig.production and fill out database credentials. (Do not submit.)
-
npm run typeorm migration:generate -- --name initialize --connection multiplayer --config ormconfig.production
-
Commit the migration.
npm run typeorm migration:run -- --connection multiplayer --config ormconfig.production
# Fill out your github access token here. (The one for NPM.)
NPM_TOKEN=YOUR_ACCESS_TOKEN
docker build -t ghcr.io/flashflashrevolution/service-multiplayer-server:dev --build-arg NPM_TOKEN=${NPM_TOKEN} .
docker container run --env-file .env <image-id> -p 8081:8081