mirror of
https://github.com/swisscom/cf-default-app-go.git
synced 2026-12-04 17:38:39 +00:00
The default Go app that will be pushed in the Swisscom Application Cloud if no source code is provided | Read-only mirror of https://github.com/swisscom/cf-default-app-go — Swisscom. Issues & pull requests at the source.
- Go Template 78.5%
- Go 21.1%
- Procfile 0.4%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| public | ||
| templates | ||
| .cfignore | ||
| .gitignore | ||
| CODE_OF_CONDUCT.md | ||
| CONTRIBUTING.md | ||
| glide.lock | ||
| glide.yaml | ||
| LICENSE | ||
| main.go | ||
| manifest.yml | ||
| Procfile | ||
| README.md | ||
CF Default App Go
The default Go app that will be pushed into the Swisscom Application Cloud if no source code is provided.
Run locally
- Install Go
- Run
go run main.go - Visit http://localhost:8080
Run in the cloud
- Install the cf CLI
- Run
cf push --random-route - Visit the given URL
Create ZIP for Go buildpack
- Run
zip -r go_app.zip public templates glide.lock glide.yaml main.go
Create ZIP for Binary buildpack
- Install Go
- Change texts in
templates/index.html - Run
GOOS=linux GOARCH=amd64 go build - Run
zip -r binary_app.zip public templates cf-default-app-go Procfile