Heroku buildpack for continuous deployment of Godot Engine Mono Server exports that utilize Godot's WebSocketServer.
- Allows for automatic deploys of Godot Mono projects from source to Heroku with Git.
- Runs in the Heroku cloud with Godot Mono Server executable.
- Ensure that
project.godot
andexport_presets.cfg
files are inclided in the source(Godot adds them to.gitignore
automatically.) - Project will be exported using .Net SDK instead of Mono.
- In Godot Editor Settings set Mono Build Tool to
dotnetCLI
.
- In Godot Editor Settings set Mono Build Tool to
- GODOT_VERSION such as
3.4.4
.
- Exported project needs to be built at least once locally with Linux/X11 template.
-
Heroku randomly assigns the port for the application.
-
Exported project needs to bind to
$PORT
passed as a first argument of OS.GetCmdlineArgs():string[] args = OS.GetCmdlineArgs(); int port = args[0]; Godot.Error err = server.Listen(port);
-
Connect websocket clients to your server with
wss://your_app.herokuapp.com
- Heroku config vars can be consumed by Godot with OS.GetEnvironment():
string myConfigVar = OS.GetEnvironment("MY_CONFIG_VAR" as string);