https://github.com/swisscom/cf-default-app-go
The default Go app that will be pushed in the Swisscom Application Cloud if no source code is provided
https://github.com/swisscom/cf-default-app-go
cloud-foundry go golang swisscom-application-cloud
Last synced: 4 days ago
JSON representation
The default Go app that will be pushed in the Swisscom Application Cloud if no source code is provided
- Host: GitHub
- URL: https://github.com/swisscom/cf-default-app-go
- Owner: swisscom
- License: other
- Created: 2016-06-23T06:00:23.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2024-10-16T15:15:08.000Z (9 months ago)
- Last Synced: 2025-04-06T19:41:21.142Z (3 months ago)
- Topics: cloud-foundry, go, golang, swisscom-application-cloud
- Language: Go
- Size: 10.5 MB
- Stars: 0
- Watchers: 34
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
1. Install [Go](https://golang.org/doc/install)
1. Run `go run main.go`
1. Visit## Run in the cloud
1. Install the [cf CLI](https://github.com/cloudfoundry/cli#downloads)
1. Run `cf push --random-route`
1. Visit the given URL## Create ZIP for Go buildpack
1. Run `zip -r go_app.zip public templates glide.lock glide.yaml main.go`
## Create ZIP for Binary buildpack
1. Install [Go](https://golang.org/doc/install)
1. Change texts in `templates/index.html`
1. Run `GOOS=linux GOARCH=amd64 go build`
1. Run `zip -r binary_app.zip public templates cf-default-app-go Procfile`