Skip to content

Commit

Permalink
add not about npm anycable-go to serverless
Browse files Browse the repository at this point in the history
  • Loading branch information
palkan committed Nov 3, 2023
1 parent 2d3ca8d commit 2091147
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions docs/guides/serverless.md
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,21 @@ fly launch --image anycable/anycable-go:1 --generate-name --ha=false \
--env ANYCABLE_RPC_HOST=https://<YOUR_JS_APP_HOSTNAME>/api/anycable
```
## Running AnyCable-Go locally
There are plenty of ways of installing `anycable-go` binary on your machine (see [../anycable-go/getting_started.md]). For your convinience, we also provide an NPM package that can be used to install and run `anycable-go`:
```sh
npm install --save-dev @anycable/anycable-go
pnpm install --save-dev @anycable/anycable-go
yarn add --dev @anycable/anycable-go
# and run as follows
npx anycable-go
```
**NOTE:** The version of the NPM package is the same as the version of the AnyCable-Go binary (which is downloaded automatically on the first run).
[vercel-anycable-demo]: https://github.com/anycable/vercel-anycable-demo
[Fly]: https://fly.io
[anycable-serverless-js]: https://github.com/anycable/anycable-serverless-js
Expand Down

0 comments on commit 2091147

Please sign in to comment.