Skip to content

Commit

Permalink
Use relative path in blobl server script
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeffail committed Oct 14, 2021
1 parent 017a6a3 commit 5c9dbef
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lib/service/blobl/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ const bloblangEditorPage = `<!DOCTYPE html>
</body>
<script>
function execute() {
const request = new Request(window.location.href + 'execute', {
const request = new Request('execute', {
method: 'POST',
body: JSON.stringify({
mapping: getMapping(),
Expand Down
21 changes: 16 additions & 5 deletions website/docs/guides/getting_started.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,31 @@ Woops! You fell for the marketing hype. Let's try and get through this together.

The easiest way to install Benthos is with this handy script:

import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';

<Tabs defaultValue="latest" values={[
{ label: 'Latest stable version', value: 'latest', },
{ label: 'Specific version', value: 'version', },
]}>
<TabItem value="latest">

```sh
curl -Lsf https://sh.benthos.dev | bash
```

Or you can grab an archive containing Benthos from the [releases page][releases].

Or install a specific version with the installer script:
</TabItem>
<TabItem value="version">

```sh
curl -Lsf https://sh.benthos.dev | bash -s -- <VERSION>
Example:
curl -Lsf https://sh.benthos.dev | bash -s -- 3.56.0
```

</TabItem>
</Tabs>

Or you can grab an archive containing Benthos from the [releases page][releases].

### Docker

If you have docker installed you can pull the latest official Benthos image with:
Expand Down

0 comments on commit 5c9dbef

Please sign in to comment.