# README

This README would normally document whatever steps are necessary to get the
application up and running.

Things you may want to cover:

* Ruby version

* System dependencies

* Configuration

* Database creation

* Database initialization

* How to run the test suite

* Services (job queues, cache servers, search engines, etc.)

* Deployment instructions

* ...

# OpenRegister School Demo

## Deployment

### Environment variables

`HOST` is url of your site, e.g. https://your-app-name.herokuapp.com

`MAP_API_HOST` is [URL template for map tile server](http://leafletjs.com/reference.html#url-template), e.g. http://{s}.somedomain.com/blabla/{z}/{x}/{y}.png

### Heroku deployment

To setup fresh heroku deployment:

```sh
heroku create --region eu --org <org>

heroku apps:rename <your-app-name>

heroku addons:create mongolab:sandbox

heroku addons:create memcachier:dev

heroku addons:destroy heroku-postgresql --confirm <your-app-name>

heroku config:set HOST=<site-url> MAP_API_HOST=<map-url-template>

git push heroku master

heroku run rake db:seed

heroku open
```


Add deployment steps to readme
Add deployment steps to readme

Document how to do a fresh deploy to heroku.

Describe deployment env vars.
