Skip to content

Latest commit

 

History

History
40 lines (28 loc) · 1.22 KB

ACTOR_CRASH_COURSE.md

File metadata and controls

40 lines (28 loc) · 1.22 KB

Actor Crash Course

Prerequisites

  • Must have Rivet docker compose running
  • Must have hub running just for the device link

Actor test

cargo build
cd examples/js-deno
../../target/debug/rivet login --api-endpoint http://localhost:8080
# copy the path to localhost:5080/device/link/... and finish linking
../../target/debug/rivet deploy default
# copy build id
../../target/debug/rivet actor create default -t name=rng --build MY_BUILD_ID --region local --network-mode host --port protocol=tcp,name=http,host
# copy public_hostname and public_port
curl 127.0.0.1:20081
../../target/debug/rivet actor destroy default --id MY_ACTOR_ID

Reference

  • See rivet --help for more commands
  • rivet.jsonc config spec at packages/toolchain/src/config/mod.rs
  • WIP typedefs for actors here

Known issues

  • Only supports host networking
  • Networking is not working (afaik)
  • LZ4 compression for JS tars don't work (defaults to correct compression, no action needed)

Troubleshooting

Error getting bootstrap: get project failed

Make sure to run rivet logout if you reset the core cluster.