GithubHelp home page GithubHelp logo

grokify / goheroku Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 0.0 68 KB

CLI app to kickstart a Go app for Heroku by creating boilerplate files.

License: MIT License

Go 100.00%
cli cli-utility cli-command heroku-apps heroku

goheroku's Introduction

GoHeroku - Heroku Golang Helper

Build Status Go Report Card Docs License

CLI app to create boilerplate for a Heroku Go app. These files will also enable the "Deploy to Heroku" button to function.

Installation

$ go get github.com/grokify/goheroku

Usage

$ goheroku my-project
Writing file 1: my-project/.env
Writing file 2: my-project/app.json
Writing file 3: my-project/Dockerfile
Writing file 4: my-project/heroku.yml
Writing file 5: my-project/Makefile
Writing file 6: my-project/Procfile
DONE

You will need to use go mod init to create your go.mod file. Add the following Heroku directive to your go.mod file above the go version number line.

// +heroku goVersion go1.16
go 1.16

Updating Project Docs

Once your repo is ready for Heroku, you can add various options to "Deploy to Heroku" to your README.md file. The following includes adding a shield, button, and a CLI manual mode.

Shield

The following adds a shield that looks like to your file.

[![Heroku][heroku-svg]][heroku-url]
 [heroku-svg]: https://img.shields.io/badge/%E2%86%91_deploy-Heroku-7056bf.svg?style=flat
 [heroku-url]: https://heroku.com/deploy

Button

The following adds a button that looks like to your file.

[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy)

Manual

$ heroku create
$ git push heroku master
$ heroku open

More Info

Find information on deploying Go apps on Heroku here:

=====

goheroku's People

Contributors

dependabot[bot] avatar grokify avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.