Skip to content

Latest commit

 

History

History
79 lines (45 loc) · 1.97 KB

README.md

File metadata and controls

79 lines (45 loc) · 1.97 KB

Build Status Dependency Status

Pivotal Life

A dashboard for Pivots at the office.

Requirements

On Mac you can install NodeJs, PhantomJs and CloudFoundry with the following:

$ brew install node
$ brew install phantomjs
$ brew install cloudfoundry-cli

Setup

To checkout and run the project locally:

$ git clone [email protected]:spilth/pivotal-life.git
$ cd pivotal-life
$ bundle
$ npm install -g coffee-script

Environment Variables

To run the dashboard you will need a .env file with various tokens and keys. The fastest way to do this is by pulling them down from Cloud Foundry.

First, target the pivotal-life app on the public Cloud Foundry deployment:

$ cf api api.run.pivotal.io

Then log in to Cloud Foundry:

$ cf login

Select the pivotallabs org.

Note: You will need to belong to the pivotallabs org and have access to the pivotal-life space.

Next, build a .env file using the Cloud Foundry settings:

$ ./populate-dotenv.sh

Running

Now run the local server:

$ bundle exec dashing start

Then navigate to http://localhost:3030/.

Deploying

Once you are logged in to Cloud Foundry, per above, do the following:

Staging

$ cf push pivotal-life-staging

Navigate to http://pivotal-life-staging.cfapps.io/

Production

$ cf push pivotal-life

Navigate to http://pivotal-life.cfapps.io/

Resources