Just kidding
parent
2c0fa881d0
commit
eb5b758d79
17
README.md
17
README.md
|
@ -26,7 +26,22 @@ The key responsibility of the API is *information and permissions management*. T
|
|||
0. Open localhost in your [favorite web browser](www.google.com/chrome)
|
||||
|
||||
# Provisioning Your Own with Dokku
|
||||
#TODO
|
||||
|
||||
0. Create a fresh Ubuntu 14 server with Dokku (or just use DigitalOcean)
|
||||
0. [Upgrade to the latest version of Dokku](https://github.com/dokku/dokku/blob/master/docs/upgrading.md) (especially if you are on DigitalOcean- their version is out of date)
|
||||
0. Install dokku-haproxy plugin: `ssh root@YOUR_SERVER dokku plugin:install https://github.com/256dpi/dokku-haproxy.git`
|
||||
0. Deploy: `git push dokku@YOUR_SERVER:mqtt`
|
||||
0. Point to correct host/port: `ssh dokku@MQTT_SERVER config:set mqtt PORT=3002 DOKKU_NGINX_PORT=3002 WEB_APP_URL=WEBAPP_URL_HERE`
|
||||
0. Expose MQTT port: `ssh dokku@MQTT_SERVER ports:add mqtt 1883 web 1883`
|
||||
|
||||
# Config Settings (important)
|
||||
|
||||
Here are some of the configuration options you must set when provisioning a new server:
|
||||
|
||||
* **Encryption keys**: Encryption keys will be autogenerated if not present. They can be reset using `rake keys:generate`. If `ENV['RSA_KEY']` is set, it will be used in place of the `*.pem` files. Useful for environments like Heroku, where file system access is not allowed.
|
||||
* `ENV['DEVISE_SECRET']`: Used for devise. Use `rake secret` to generate a new value.
|
||||
* `ENV['MQTT_HOST']`: Host (no port or slashes or anything) of running [MQTT gateway](https://github.com/FarmBot/mqtt-gateway). This is required so that Farmbot can know where to connect when given an authorization token.
|
||||
* `ENV['JS_FILE_URL']`: URL pointing to the [Farmbot Frontend](https://github.com/FarmBot/farmbot-web-frontend) `bundle.js` file. This is what gets injected into the `<script>` tag when the user visits `/app`.
|
||||
|
||||
**We can't fix issues we don't know about.** Please submit an issue if you are having trouble installing on your local machine.
|
||||
|
||||
|
|
Loading…
Reference in New Issue