Created
April 11, 2017 20:42
-
-
Save guylaor/e1c592f7703d17e9b3144c36e13fc6f4 to your computer and use it in GitHub Desktop.
Get Go to run on elasticbeanstalk
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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