Introduction
This is a skeleton application to demonstrate a basic Golang application suitable for deployment on the cloud.gov.au CloudFoundry environment that:
- Uses a Postgresql database.
- Uses a vendor directory.
- 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