A simple Go HTTP service ready to be deployed to Heroku
This application is configured to run on Heroku. As such, there are some steps to follow to get it running in your local.
-
Remove the
.git
directory and create a fresh one for your project$ rm -rf .git $ git init .
-
Install Heroku Toolbelt:
Via Homebrew:
$ brew install heroku
Or Via Heroku
-
Create your .env file
$ cp env.example .env
-
Update any values in
.env
as needed -
Run the application locally
$ heroku local
Assuming you have the proper heroku app setup + git remote
-
Remove
vendor
from .gitignore -
Save and commit dependencies
$ govendor add +external $ git commit -am "initial import of dependencies for heroku"
-
Deploy
$ git push heroku [BRANCH]:master
You can run the migrations an seeds located in the migrates
directory to get your database in the most recent state.
NB: After release, new migrate and seeds files should be created to incremental updates