Skip to content

Commit

Permalink
Add JSON and Bash syntax highlighting to README.md (#187)
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin-Loison authored Aug 15, 2023
1 parent d1047c7 commit eef27c8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Note that this project uses [Go modules](https://github.com/golang/go/wiki/Modul

Edit the following files:
1. `plugin.json` with your `id`, `name`, and `description`:
```
```json
{
"id": "com.example.my-plugin",
"name": "My Plugin",
Expand Down Expand Up @@ -81,13 +81,13 @@ make deploy
```

You may also customize the Unix socket path:
```
```bash
export MM_LOCALSOCKETPATH=/var/tmp/alternate_local.socket
make deploy
```

If developing a plugin with a webapp, watch for changes and deploy those automatically:
```
```bash
export MM_SERVICESETTINGS_SITEURL=http://localhost:8065
export MM_ADMIN_TOKEN=j44acwd8obn78cdcx7koid4jkr
make watch
Expand All @@ -96,15 +96,15 @@ make watch
### Deploying with credentials

Alternatively, you can authenticate with the server's API with credentials:
```
```bash
export MM_SERVICESETTINGS_SITEURL=http://localhost:8065
export MM_ADMIN_USERNAME=admin
export MM_ADMIN_PASSWORD=password
make deploy
```

or with a [personal access token](https://docs.mattermost.com/developer/personal-access-tokens.html):
```
```bash
export MM_SERVICESETTINGS_SITEURL=http://localhost:8065
export MM_ADMIN_TOKEN=j44acwd8obn78cdcx7koid4jkr
make deploy
Expand Down

0 comments on commit eef27c8

Please sign in to comment.