Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
CAF extra lib to deploy apps in Cloud Foundry
JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
.gitignore
LICENSE-2.0.txt
README.md
index.js
package.json

README.md

CAF (Cloud Assistant Framework)

Co-design permanent, active, stateful, reliable cloud proxies with your web app.

See http://www.cafjs.com

CAF Extra Deploy

This repository contains a CAF extra lib to deploy applications in Cloud Foundry.

API

lib/proxy_deploy.js

See the Turtles example application.

Configuration Example

framework.json

   "plugs": [
       {
        "module": "caf_deploy/plug",
        "name": "deploy_mux",
        "description": "Shared connection to a service that deploys apps in CF\n Properties: \n",
        "env": {
            "target" : "http://api.cafjs.com",
            "user" : "foo@bar.com",
            "password" : "pleasechange",
            "map": null,
            "memory" : 64,
            "instances": 1,
            "services" :["redis"]
        }
      }

The properties define the vcap target, username, and password. They also specify how many instances should host you application, the maximum memory the can use, and the extra services that your application needs. Optionally, we can specify a new mapping url (e.g., http://api.whatever.com) where api is replaced by the application name (null is used as a placeholder for tools that configure this option).

ca.json

"internal" : [
    {
        "module": "caf_deploy/plug_ca",
        "name": "deploy_ca",
        "description": "Provides a  service  to deploy apps for this CA",
        "env" : {

        }
    }
    ...
 ]
 "proxies" : [
   {
        "module": "caf_deploy/proxy",
        "name": "deploy",
        "description": "Access to a service to deploy CF apps",
        "env" : {

        }
    },
    ...
  ]
Something went wrong with that request. Please try again.