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

Commit 832bbd7

Browse files
committed
Update deployment steps
1 parent da30a4d commit 832bbd7

File tree

4 files changed

+12
-27
lines changed

4 files changed

+12
-27
lines changed

.vscode/.browse.VC.db

4.25 MB
Binary file not shown.

.vscode/.browse.VC.db-wal

4.33 MB
Binary file not shown.

DEPLOYMENT.md

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# New Deploy
2+
3+
0. Get a nice, fresh VM with Ubuntu 16
4+
0. [Install Docker](https://docs.docker.com/engine/installation/linux/ubuntulinux/)
5+
0. `sudo docker build -t mqtt https://github.com/FarmBot/mqtt-gateway.git`
6+
0. Run it:
7+
```
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
10+
```
11+
12+
You now have a server running on port `3002` (Websockets) and `1883` (raw MQTT).

setup_notes.md

-27
This file was deleted.

0 commit comments

Comments
 (0)