Remove Dokku references.

pull/877/head
Rick Carlino 2018-06-04 10:41:51 -05:00
parent dbd4afe8d0
commit bb52d1536e
2 changed files with 2 additions and 59 deletions

View File

@ -14,17 +14,7 @@ If you want to run a server on a LAN for personal use, this is the easiest and c
**Affordability:** :heart::heart::heart:
1. Follow the [developer setup guide](https://github.com/FarmBot/Farmbot-Web-App#developer-setup).
# Deployment to Dokku (saves money)
**Simplicity:** :broken_heart:
**Reliability:** :heart::heart:
**Affordability:** :heart::heart:
Although Dokku is a great way to set up a server for personal use, it is not the primary deployment method at FarmBot, Inc. As such, our ability to troubleshoot Dokku related issues is limited. We are currently updating the Dokku deployment instructions to reflect the latest server setup. It is a work in progress. See `dokku.sh` for instructions.
1. Follow the [developer setup guide](https://github.com/FarmBot/Farmbot-Web-App#q-how-do-i-setup-an-instance-locally).
# Deployment Using Heroku (best reliability)
@ -37,4 +27,4 @@ Although Dokku is a great way to set up a server for personal use, it is not the
1. Deploy as you would normally [deploy to Heroku](https://devcenter.heroku.com/articles/getting-started-with-rails4#deploy-your-application-to-heroku)
2. Enable Dyno metadata: `heroku labs:enable runtime-dyno-metadata --app <app name>` (we need this to know the version number of the web app).
Don't forget to [set ENV vars](https://devcenter.heroku.com/articles/config-vars) and run `heroku run rake db:setup`.
Don't forget to [set ENV vars](https://devcenter.heroku.com/articles/config-vars) as you would normally do with `application.yml` and run `heroku run rake db:setup`.

View File

@ -1,47 +0,0 @@
# Start on an empty, clean Ubuntu 17 box.
# RUN UPDATES
apt-get update
apt-get upgrade --yes
# INSTALL DOKKU
wget https://raw.githubusercontent.com/dokku/dokku/v0.10.5/bootstrap.sh;
sudo DOKKU_TAG=v0.10.5 bash bootstrap.sh
# ADD SSH KEYS to the server because passwords are bad.
# Run this locally:
# cat ~/.ssh/id_rsa.pub | ssh user@host "mkdir -p ~/.ssh && cat >> ~/.ssh/authorized_keys"
# xclip -sel clip < ~/.ssh/id_rsa.pub
# Visit your machine in Chrome. Copy/paste clipboard contents into the box
# Bootstrap Dokku, Rails and PostgreSQL
dokku apps:create farmbot
dokku plugin:install https://github.com/dokku/dokku-postgres.git
dokku postgres:create farmbot_database
dokku postgres:link farmbot_database farmbot
# IMPORTANT: Use real values here. See application.example.yml for info.
dokku config:set farmbot MQTT_HOST="1.2.3.4" API_HOST="1.2.3.4" NO_EMAILS="TRUE"
dokku storage:mount farmbot /var/lib/dokku/data/keys:/keys
# You're ready to deploy! On your local machine:
# On your local machine, within the FarmBot-Web-App directory:
# git remote add dokku dokku@___YOUR_HOST_HERE___:farmbot
# git push dokku master
#
# Some deployments have been known to fail unexpectedly on first build (new VMs)
# In those cases, you can often run `git push dokku master` to force a re-build.
# After deploying, bootstrap the database:
dokku run my_app_name rake db:setup
# RUN ONLY IF YOU DO NOT HAVE A DOMAIN NAME (testing)
dokku proxy:ports-add farmbot http:80:5000
# IF YOU NEED TO DEBUG PROBLEMS: redeploy after performing the following:
dokku trace on # sets dokku to debug mode
dokku config:set --global CURL_TIMEOUT=600 # Prevent timeouts
dokku config:set --global CURL_CONNECT_TIMEOUT=30 # Same thing
# TODO: We currently do not have setup instructions for RabbitMQ. Please submit
# a pull request if you wish to contribute RabbitMQ setup instructions.