Skip to content

The default Go app that will be pushed in the Swisscom Application Cloud if no source code is provided

License

Notifications You must be signed in to change notification settings

swisscom/cf-default-app-go

Repository files navigation

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
  2. Run go run main.go
  3. Visit http://localhost:8080

Run in the cloud

  1. Install the cf CLI
  2. Run cf push --random-route
  3. 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
  2. Change texts in templates/index.html
  3. Run GOOS=linux GOARCH=amd64 go build
  4. Run zip -r binary_app.zip public templates cf-default-app-go Procfile

About

The default Go app that will be pushed in the Swisscom Application Cloud if no source code is provided

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •