cf-go-helloworld

command module
v0.0.0-...-cbd7ca7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 19, 2017 License: MIT Imports: 9 Imported by: 0

README

Introduction

This is a skeleton application to demonstrate a basic Golang application suitable for deployment on the cloud.gov.au CloudFoundry environment that:

  1. Uses a Postgresql database.
  2. Uses a vendor directory.
  3. Uses CircleCI with push-to-deploy.

This is very much a work-in-progress.

Pre-work

Create the database:

cf create-service postgres shared go-helloworld-db

Update manifest.yml to include a reference to our database service:

  services:
  - go-helloworld-db

Sync govendor dependencies:

govendor sync

Push it (recommended to use the Blue/Green deployer plugin for CF):

cf blue-green-deploy go-helloworld

(or, if you prefer downtime: cf push)

Once-off, visit the bootstrap page: https://your.site/bootstrap

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL