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

Commit

Permalink
fix(backend): generate correct actor driver path
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanFlurry committed Sep 7, 2024
1 parent d987c16 commit 77cbd3d
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 4 deletions.
21 changes: 19 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,24 @@ If something goes wrong with a deploy:
git push -u origin :refs/tags/vx.x.x
```
## Developing Backend
## Developing
### Iterating Faster
### Run CLI
```sh
cargo build
./target/debug/rivet --help
```

### Install CLI Globally

To install the

```sh
cargo install --path packages/cli --debug
```

### Edit Backend Without Rebuild

To iterate faster on the backend without requiring rebuilding the toolchain for every change, run `rivet config edit user` and add this to your config, where `/path/to/toolchain` is the path to this repository:

Expand All @@ -46,6 +61,8 @@ To iterate faster on the backend without requiring rebuilding the toolchain for
}
```

This will direct the toolchain to use the raw source code for the backend instead of the embedded backend source code that requires a rebuild.

## Implementation Notes

### Backend Package
Expand Down
3 changes: 1 addition & 2 deletions packages/backend/toolchain/project/project.ts
Original file line number Diff line number Diff line change
Expand Up @@ -347,8 +347,7 @@ export function genRuntimeActorDriverPath(project: Project, runtime: Runtime): s

return projectGenPath(
project,
"runtime",
"packages",
PACKAGES_PATH,
"runtime",
"actor",
"drivers",
Expand Down

0 comments on commit 77cbd3d

Please sign in to comment.