meip / cf-default-app-go

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 server.go

Run in the cloud

  1. Install the cf CLI
  2. Run cf push --random-route
  3. Visit the given URL

Create ZIP for Go

  1. Run zip -r go_app.zip Godeps public templates Procfile server.go

Create ZIP for Binary

  1. Install Go
  2. Change texts in templates/index.html
  3. Change Procfile to web: ./cf-default-app-go
  4. Run GOARCH=amd64 GOOS=linux go build .
  5. 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


Languages

Language:HTML 78.0%Language:Go 22.0%