-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Replit is a free online coding environment that allows you to host your game project for free. Follow the steps below to self-host your game project on Replit:
-
Clone this repo.
-
Import the cloned repository into Replit.
-
Open the console in Replit and run the following command to clone the repository into the
publicfolder:git clone https://github.com/SurvivReloaded/survivreloaded-client.git public -
Run the Replit project. This will install any necessary dependencies.
-
Run
npm devto preview any changes. -
Open the
config.jsonfile and change thehostfrom127.0.0.1to0.0.0.0. This is necessary to allow Replit to generate a domain for your project and open a webview tab with it. -
You should now see that the game website is online, but when starting the game it will fail to connect to the websocket server. To fix this, add a value
addrtoconfig.json, with the URL generated by Replit, without thehttps://prefix. example:"addr": "survivreloaded-server.replitusername.repl.co"
With these steps, your game project should now be hosted and available online for others to play.