Visit the Rivet Dashboard to create a new game.
Follow instructions here.
Open your projectβs directory in a terminal and run:
This will guide you through setting up your project with Rivet.
Dockerfile
for your serverYouβll need a Dockerfile
to build and run your game server.
Unfamiliar with Dockerfiles?
Dockerfiles
has one already written for youDockerfile
quicklyDockerfile
for you!Copy the following pseudocode into the appropriate places in your source:
In development,Β RIVET_TOKEN
will use the development token generated by rivet run
. In production,Β RIVET_TOKEN
will be automatically added by the CDN.
Copy the following pseudocode into the appropriate places in your source:
In development, RIVET_TOKEN
will use the development token generated by rivet run
. In production,Β RIVET_TOKEN
is automatically added to your environment by Rivet.
This will print a URL ending in rivet.game
. If you are hosting your game on Rivet CDN, visit that URL to play your game.