-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
john
committed
Nov 12, 2016
0 parents
commit 2bd533c
Showing
497 changed files
with
92,035 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
.env | ||
.docker_build/ |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
FROM alpine:latest | ||
|
||
MAINTAINER Edward Muller <[email protected]> | ||
|
||
WORKDIR "/opt" | ||
|
||
ADD .docker_build/gost-heroku /opt/bin/gost-heroku | ||
|
||
CMD ["/opt/bin/gost-heroku"] | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
GO_BUILD_ENV := GOOS=linux GOARCH=amd64 | ||
DOCKER_BUILD=$(shell pwd)/.docker_build | ||
DOCKER_CMD=$(DOCKER_BUILD)/gost-heroku | ||
|
||
$(DOCKER_CMD): clean | ||
mkdir -p $(DOCKER_BUILD) | ||
$(GO_BUILD_ENV) go build -v -o $(DOCKER_CMD) . | ||
|
||
clean: | ||
rm -rf $(DOCKER_BUILD) | ||
|
||
heroku: $(DOCKER_CMD) | ||
heroku container:push web |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
web: gost-heroku -L=ss+ws://aes-128-cfb:1234567890@:80 |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
|
||
# go-getting-started | ||
|
||
A barebones Go app, which can easily be deployed to Heroku. | ||
|
||
This application supports the [Getting Started with Go on Heroku](https://devcenter.heroku.com/articles/getting-started-with-go) article - check it out. | ||
|
||
## Running Locally | ||
|
||
Make sure you have [Go](http://golang.org/doc/install) and the [Heroku Toolbelt](https://toolbelt.heroku.com/) installed. | ||
|
||
```sh | ||
$ go get -u github.com/heroku/go-getting-started | ||
$ cd $GOPATH/src/github.com/heroku/go-getting-started | ||
$ heroku local | ||
``` | ||
|
||
Your app should now be running on [localhost:5000](http://localhost:5000/). | ||
|
||
You should also install [Godep](https://github.com/tools/godep) if you are going to add any dependencies to the sample app. | ||
|
||
## Deploying to Heroku | ||
|
||
```sh | ||
$ heroku create | ||
$ git push heroku master | ||
$ heroku open | ||
``` | ||
|
||
or | ||
|
||
[![Deploy](https://www.herokucdn.com/deploy/button.png)](https://heroku.com/deploy) | ||
|
||
|
||
## Documentation | ||
|
||
For more information about using Go on Heroku, see these Dev Center articles: | ||
|
||
- [Go on Heroku](https://devcenter.heroku.com/categories/go) |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"name": "Start on Heroku: Go", | ||
"description": "Go Getting Started Example App", | ||
"keywords": [ | ||
"getting-started", | ||
"go", | ||
"sample", | ||
"example" | ||
], | ||
"image": "heroku/go:1.6", | ||
"mount_dir": "src/github.com/heroku/go-getting-started", | ||
"website": "http://github.com/heroku/go-getting-started", | ||
"repository": "http://github.com/heroku/go-getting-started" | ||
} |
Binary file not shown.
Oops, something went wrong.