Skip to content

Instantly share code, notes, and snippets.

@guylaor
Created April 11, 2017 20:42
Show Gist options
  • Save guylaor/e1c592f7703d17e9b3144c36e13fc6f4 to your computer and use it in GitHub Desktop.
Save guylaor/e1c592f7703d17e9b3144c36e13fc6f4 to your computer and use it in GitHub Desktop.
Get Go to run on elasticbeanstalk
Create 3 files.
/build.sh ---> remember to chmod +x this file
go get github.com/gorilla/mux
go build -o bin/application *.go
/Buildfile
make: ./build.sh
/Procfile
web: bin/application
than you can run this and it will deploy the new version - you have to first commit to git
> eb deploy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment