Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gobuffalo/buffalo-heroku
Sets up and deploys apps to Heroku
https://github.com/gobuffalo/buffalo-heroku
buffalo go gobuffalo golang heroku paas
Last synced: about 1 month ago
JSON representation
Sets up and deploys apps to Heroku
- Host: GitHub
- URL: https://github.com/gobuffalo/buffalo-heroku
- Owner: gobuffalo
- License: mit
- Created: 2018-08-18T21:01:32.000Z (over 6 years ago)
- Default Branch: main
- Last Pushed: 2022-07-06T07:25:18.000Z (over 2 years ago)
- Last Synced: 2024-06-19T05:41:22.765Z (6 months ago)
- Topics: buffalo, go, gobuffalo, golang, heroku, paas
- Language: Go
- Homepage: https://gobuffalo.io
- Size: 164 KB
- Stars: 16
- Watchers: 10
- Forks: 9
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# buffalo-heroku
This is a plugin for [https://gobuffalo.io](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](https://devcenter.heroku.com/articles/container-registry-and-runtime) first.
## Installation
```bash
$ go get -u -v github.com/gobuffalo/buffalo-heroku
```Or, if you have `GO111MODULE=on`
```bash
buffalo plugins install github.com/gobuffalo/buffalo-heroku
```## Help
```bash
$ buffalo heroku --help
```## Pre-Requisites
* You should absolutely have read [https://devcenter.heroku.com/articles/container-registry-and-runtime](https://devcenter.heroku.com/articles/container-registry-and-runtime) first.
* You should have the Heroku CLI installed [https://devcenter.heroku.com/articles/heroku-cli](https://devcenter.heroku.com/articles/heroku-cli).## New
The `buffalo heroku new` 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.
```bash
$ buffalo heroku new -hcreates a new heroku application
Usage:
buffalo-heroku heroku new [flags]Flags:
--addon:heroku-postgresql string options: hobby-dev, hobby-basic, standard-0 (default "hobby-dev")
--addon:heroku-redis string options: hobby-dev (default "hobby-dev")
--addon:sendgrid string options: starter (default "starter")
-a, --app-name string the name of the heroku app to deploy
--auth log into heroku from the cli
-d, --dry-run run the generator without creating files or running commands
-l, --dyno-level string free, hobby, standard-1x, standard-2x (default "free")
-e, --environment string the environment to run the application in (default "production")
-h, --help help for new
```## 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.
```bash
$ buffalo heroku deploy
```