Farmbot-Web-App/DEPLOYMENT.md

41 lines
1.6 KiB
Markdown
Raw Normal View History

2017-10-06 14:11:53 -06:00
# Notes About This File
Parts of this document may be out of date or reflect practices that are no longer relevant to the latest version of the Web App.
Please raise an issue if you hit any issues during deployment.
2017-11-01 12:16:04 -06:00
# Run on a Local Machine (saves time)
2016-12-27 12:42:39 -07:00
If you want to run a server on a LAN for personal use, this is the easiest and cheapest option.
**Simplicity:** :heart::heart::heart:
2017-08-14 11:25:32 -06:00
2016-12-27 12:42:39 -07:00
**Reliability:** :broken_heart:
2017-08-14 11:25:32 -06:00
2016-12-27 12:42:39 -07:00
**Affordability:** :heart::heart::heart:
2017-07-05 11:47:28 -06:00
1. Follow the [developer setup guide](https://github.com/FarmBot/Farmbot-Web-App#developer-setup).
2017-11-01 12:16:04 -06:00
# Deployment to Dokku (saves money)
2016-12-27 12:42:39 -07:00
**Simplicity:** :broken_heart:
2017-08-14 11:25:32 -06:00
2016-12-27 12:42:39 -07:00
**Reliability:** :heart::heart:
2017-08-14 11:25:32 -06:00
2016-12-27 12:42:39 -07:00
**Affordability:** :heart::heart:
2017-10-12 09:33:56 -06:00
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.
2016-11-17 09:18:19 -07:00
2017-11-01 12:16:04 -06:00
# Deployment Using Heroku (best reliability)
2016-11-17 09:18:19 -07:00
2016-12-27 12:42:39 -07:00
**Simplicity:** :heart::heart::heart::heart:
2017-08-14 11:25:32 -06:00
2016-12-27 12:42:39 -07:00
**Reliability:** :heart::heart::heart::heart:
2017-08-14 11:25:32 -06:00
2016-12-27 12:42:39 -07:00
**Affordability:** :broken_heart:
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).
2016-11-17 09:18:19 -07:00
2017-02-10 07:06:24 -07:00
Don't forget to [set ENV vars](https://devcenter.heroku.com/articles/config-vars) and run `heroku run rake db:setup`.