Skip to content
This repository has been archived by the owner on Oct 21, 2022. It is now read-only.

Add game servers (Heroku)

TatLead edited this page Oct 27, 2020 · 9 revisions

⚠️ not applicable >= v1.8.0

Since Heroku has an ephemeral filesystem, and the dyno will restart every day, any changes on the servers.json will cause data loss on the Heroku system. Therefore, DiscordGSM reads the SERVERS_JSON_URL env value and download the servers.json on every startup.

  1. Create a file calls servers.json on your own computer

  2. Edit servers.json. See: Edit servers.json

  3. Upload the servers.json to discord and copy the link by right click on the blue text.

    screenshot

  4. On Heroku panel, go to Settings -> Reveal Config Vars, add/edit SERVERS_JSON_URL and paste the servers.json link. (Click the 🖊️pen to edit)

    screenshot

  5. Done