Skip to content
This repository was archived by the owner on Jul 9, 2019. It is now read-only.

Commit a4295ab

Browse files
committed
Update reademe
1 parent b587e02 commit a4295ab

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

DEPLOYMENT.md

+7-6
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
1-
# New Deploy
1+
# How to Deploy
22

3-
0. Get a nice, fresh VM with Ubuntu 16
4-
0. [Install Docker](https://docs.docker.com/engine/installation/linux/ubuntulinux/)
3+
0. Get a nice, fresh VM with Ubuntu 16. We recomend the one that comes pre-installed Docker on Digital Ocean.
4+
0. [Install Docker if you didn't use Digital Ocean's docker image.](https://docs.docker.com/engine/installation/linux/ubuntulinux/). Digital ocean offers an Ubuntu image that comes pre-installed with Docker.
55
0. `sudo docker build -t mqtt https://github.com/FarmBot/mqtt-gateway.git`
66
0. Run this:
77
```
8-
# => DANGER!!: CHANGE "staging.farmbot.io" TO YOUR API URL!!!!!!
9-
sudo docker run -d -e WEB_API_URL=YOUR_API_URL_HERE -p 3002:3002 -p 1883:1883 -p 80:3002 --restart=always mqtt
8+
# => DANGER!!: CHANGE "YOUR_API_URL_HERE" TO YOUR API URL!!!!!!
9+
# => Server will crash if you forget the http:// part.
10+
sudo docker run -d -e WEB_API_URL=http://YOUR_API_URL_HERE -p 3002:3002 -p 1883:1883 -p 80:3002 --restart=always mqtt
1011
```
1112

12-
You now have a server running on port `3002` (Websockets) and `1883` (raw MQTT).
13+
You now have a server running on port `3002` (Websockets) and `1883` (raw MQTT).

app/jsonrpc_sanitizer.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ function categorizeMessage(x) {
1616
switch (pattern) {
1717
case "_.string.string.array._": return "request";
1818
case "_.null.string.array._": return "notification";
19-
case "null.string._.array._": return "success";
19+
case "null.string._.object._": return "success";
2020
case "object.string._._.null": return "failure";
2121
default:
2222
console.warn("Bad data received.", o);

0 commit comments

Comments
 (0)