These are the docs for 13.8, an old version of SpatialOS.
The docs for this version are frozen: we do not correct, update or republish them.
14.5 is the newest →
Connecting an external worker to a cloud deployment
Once you’ve got a cloud deployment running, you can connect external workers on your local machine.
Prerequisites
Your worker must have an external worker launch configuration.
Connect workers to the deployment
- If you don’t have one running already, run a cloud deployment.
- Open a terminal and navigate (
cd
) to the root directory of your project. - Set up a connection to the deployment by running
spatial cloud connect external
. Connect a worker to the deployment by running:
spatial local worker launch <worker type> <launch_config>
where:
worker type
: the type of the worker. For example,MyCSharpClient
.launch_config
: the launch configuration file.
Run
spatial local worker launch --help
for more information.For example, to start a
MyCSharpClient
using thedefault
launch configuration file, runspatial local worker launch MyCSharpClient default