cityindex/logsearch-flowdock-bot — pull request #4 by daithi-coombes (2013-11-08 14:17:17+00:00)
Title: Deploy to run.pivotal.io

Follow [this guide to deploy the logsearch-flowdoc-bot](http://docs.cloudfoundry.com/docs/using/deploying-apps/javascript/index.html) to the `run.pivotal.io` CF cloud.

A quick glance suggests that this should be as simple as adding the following `manifest.yml`

```
---
applications:
- name: logsearch-flowdock-bot
command: node server.js
```

One change you will need to make is to pull config data from ENV variables rather than `flowdockConfig.js`, as per the [12 factor app](http://12factor.net/config)

You set env values for an app deployed to cloud foundry using the [`cf set-env`](http://docs.cloudfoundry.com/docs/using/managing-apps/cf/#set-env) command. This helps to ensure that config values don't get checked into the source repo.

Finally, to ship the data into logsearch.cityindextest5.co.uk with lumberjack, have a look at how I did it with the [logsearch-purge-bot #6](https://github.com/cityindex/logsearch-purge-bot/pull/6). Note how we pull the cert data from an account level ENV var.