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%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2024-10-16 17:15:07 +02:00
public Upgrade SDX to 1.4 2017-12-04 12:16:59 +01:00
templates Move title to top 2017-06-09 15:47:44 +02:00
.cfignore Migrate app to SDX 2017-06-08 13:10:36 +02:00
.gitignore Clean up app code 2017-06-08 10:27:10 +02:00
CODE_OF_CONDUCT.md Compliance bulk update. Add CODE_OF_CONDUCT.md 2024-10-16 17:15:07 +02:00
CONTRIBUTING.md Compliance bulk update. Add CONTRIBUTING.md 2024-10-16 17:15:06 +02:00
glide.lock Add glide.lock file 2017-06-07 17:46:37 +02:00
glide.yaml Switch from Godeps to Glide 2016-11-04 13:34:27 +01:00
LICENSE Clean up app code 2017-06-08 10:27:10 +02:00
main.go Migrate app to SDX 2017-06-08 13:10:36 +02:00
manifest.yml chore: use buildpacks in manifest.yml 2020-04-03 17:05:01 +02:00
Procfile Switch from Godeps to Glide 2016-11-04 13:34:27 +01:00
README.md Fix typo 2017-07-28 10:26:40 +02:00

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