ryanwold.net

A civic-minded citizen seeking the singularity

Back to Entries

Notes on Pivotal Cloud Foundry

release
Date: 2016-01-29
Tags: cloud programming

Background

I've recently become acquainted with Pivotal Web Services (PWS) - or more specifically, Pivotal Cloud Foundry (PCF). I've racked up quite a monthly bill running a few apps on Heroku with SSL. It's been worth it - its JTBD is DevOps - and I'm willing to pay for it. Pivotal Web Services is a hosted version of the open source Cloud Foundry platform, and is provides similar PaaS functionality.

This post documents some of the resources I read getting a Rails and Ember application running with PostGIS, in the cloud.

Learning the Ropes

PCF has a command line tool, cf, which is similar to Heroku's heroku. cf push pushes the current working folder to a location that is specified in a manifest.yml file.

Gotchas

Heroku's buildpack outlines a few things, including a postInstall script in package.json that calls /bin/heroku_install. Turns out, Heroku doesn't really require it, but PCF did.

I also ran into an issue around Heroku's Multi Buildpack and discovered while it currently does work in PCF, a change has been made that has yet to be deployed, and the change will break the Multi Buildpack that I'm currently using. A workaround for my very-specific ember-cli-rails issue is TBD.

References

Pivotal Cloud Foundry (PCF)

Spring, a Java development framework

Notes

When deploying a worker, make sure manifest.yml has:

no-route: true and set-health-check: none

Note: Disable Health Check for a Worker Application

cf set-health-check app-name none

By Ryan Wold · © 2016–2026 Ryan Wold

Licensed CC BY-NC 4.0. AI training requires a license — machine-readable terms.

Enjoyed this? — any BSV wallet, HandCash, or plain old dollars.

Leave a tip

Tips go directly to a Bitcoin SV address I control — peer to peer, no platform in between. A few thousand satoshis is a fraction of a cent; it's the gesture that counts.

From any BSV wallet

Scan the QR code with your wallet's camera, or copy the address.

177DwUfSTW8RkFBJzYYcgr1YB8ngbhTYAc

With HandCash or any paymail wallet

Paymail is an email-style address for Bitcoin wallets. Send any amount to afomi@handcash.io

First time using Bitcoin? Yours Wallet is an open-source browser extension wallet, and HandCash is an easy mobile wallet — either takes a minute to set up.

Prefer regular money? Support via OpenCollective.