Tools / Buffalo-heroku

Buffalo-heroku

Archived use github.com/gobuffalo/buffalo-heroku

Forks: 5
Watchers: 2
Stars: 15

buffalo-heroku

This is a plugin for https://gobuffalo.io that makes working with Heroku easier.

It assumes you are using Docker to deploy to Heroku. It is recommended you read https://devcenter.heroku.com/articles/container-registry-and-runtime first.

Installation

$ go get -u -v github.com/markbates/buffalo-heroku

Pre-Requisites

Setup

The buffalo heroku setup command will setup and create a new Heroku app for you, with a bunch of defaults that I find nice.

Flags/Options

There are a lot of flags and options you can use to tweak the Heroku app you create. Use the --help flag to see a list of them all.

$ buffalo heroku setup

Interactive Mode

If you are unsure of what you're doing, you can use the -i flag to enter interactive mode. This will ask you questions and give you menus of choices to select from.

Deploying

The initial setup command will do a deploy at the end, but after that you'll want to use the buffalo heroku deploy command to push a new version of your application, it'll even try to run your migrations for you.

$ buffalo heroku deploy
License: MIT License - A short and simple permissive license with conditions only requiring preservation of copyright and license notices. Licensed works, modifications, and larger works may be distributed under different terms and without source code.

MIT License

Copyright (c) [year] [fullname]

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.