Add JSON and Bash syntax highlighting to README.md
(#187)
This commit is contained in:
parent
d1047c7140
commit
eef27c854b
1 changed files with 5 additions and 5 deletions
10
README.md
10
README.md
|
@ -18,7 +18,7 @@ Note that this project uses [Go modules](https://github.com/golang/go/wiki/Modul
|
||||||
|
|
||||||
Edit the following files:
|
Edit the following files:
|
||||||
1. `plugin.json` with your `id`, `name`, and `description`:
|
1. `plugin.json` with your `id`, `name`, and `description`:
|
||||||
```
|
```json
|
||||||
{
|
{
|
||||||
"id": "com.example.my-plugin",
|
"id": "com.example.my-plugin",
|
||||||
"name": "My Plugin",
|
"name": "My Plugin",
|
||||||
|
@ -81,13 +81,13 @@ make deploy
|
||||||
```
|
```
|
||||||
|
|
||||||
You may also customize the Unix socket path:
|
You may also customize the Unix socket path:
|
||||||
```
|
```bash
|
||||||
export MM_LOCALSOCKETPATH=/var/tmp/alternate_local.socket
|
export MM_LOCALSOCKETPATH=/var/tmp/alternate_local.socket
|
||||||
make deploy
|
make deploy
|
||||||
```
|
```
|
||||||
|
|
||||||
If developing a plugin with a webapp, watch for changes and deploy those automatically:
|
If developing a plugin with a webapp, watch for changes and deploy those automatically:
|
||||||
```
|
```bash
|
||||||
export MM_SERVICESETTINGS_SITEURL=http://localhost:8065
|
export MM_SERVICESETTINGS_SITEURL=http://localhost:8065
|
||||||
export MM_ADMIN_TOKEN=j44acwd8obn78cdcx7koid4jkr
|
export MM_ADMIN_TOKEN=j44acwd8obn78cdcx7koid4jkr
|
||||||
make watch
|
make watch
|
||||||
|
@ -96,7 +96,7 @@ make watch
|
||||||
### Deploying with credentials
|
### Deploying with credentials
|
||||||
|
|
||||||
Alternatively, you can authenticate with the server's API with credentials:
|
Alternatively, you can authenticate with the server's API with credentials:
|
||||||
```
|
```bash
|
||||||
export MM_SERVICESETTINGS_SITEURL=http://localhost:8065
|
export MM_SERVICESETTINGS_SITEURL=http://localhost:8065
|
||||||
export MM_ADMIN_USERNAME=admin
|
export MM_ADMIN_USERNAME=admin
|
||||||
export MM_ADMIN_PASSWORD=password
|
export MM_ADMIN_PASSWORD=password
|
||||||
|
@ -104,7 +104,7 @@ make deploy
|
||||||
```
|
```
|
||||||
|
|
||||||
or with a [personal access token](https://docs.mattermost.com/developer/personal-access-tokens.html):
|
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_SERVICESETTINGS_SITEURL=http://localhost:8065
|
||||||
export MM_ADMIN_TOKEN=j44acwd8obn78cdcx7koid4jkr
|
export MM_ADMIN_TOKEN=j44acwd8obn78cdcx7koid4jkr
|
||||||
make deploy
|
make deploy
|
||||||
|
|
Reference in a new issue