# Where2Help

[![Build Status](https://travis-ci.org/where2help/where2help.svg?branch=master)](https://travis-ci.org/where2help/where2help)
[![Dependency Status](https://gemnasium.com/badges/github.com/where2help/where2help.svg)](https://gemnasium.com/github.com/where2help/where2help)

# Development

Install bundled gems

    $ bundle install

Setup the database

    $ rails db:setup

Populate database with sample data

    $ rails db:populate

Set up the following environment variables:

* DATABASE_URL
* WHERE2HELP_DATABASE_PASSWORD
* SENDGRID_USERNAME
* SENDGRID_PASSWORD
* FQDN
* SECRET_KEY_BASE
* RAILS_ENV
* DATABASE_URL          
* LANG                  
* RACK_ENV              
* RAILS_SERVE_STATIC_FILE

Start up rails!

    $ rails server

# Deployment

[Travis CI](https://travis-ci.org/) is set up to automatically deploy applications to [Heroku](https://www.heroku.com):

* the `master` branch is automatically deployed to the staging environment:  
https://staging-where2help.herokuapp.com/

* the more stable `fsw` branch is automatically deployed to:  
https://where2help.herokuapp.com/

If you want to skip continuous integration for your commit, add this to your commit message:

    [ci skip]

# Where2Help

[![Build Status](https://travis-ci.org/where2help/where2help.svg?branch=master)](https://travis-ci.org/where2help/where2help)
[![Dependency Status](https://gemnasium.com/badges/github.com/where2help/where2help.svg)](https://gemnasium.com/github.com/where2help/where2help)

# Development

Install bundled gems

    $ bundle install

Start up postgres (if not already running)

    $ postgres -D /usr/local/var/postgres/

Setup the database

    $ rails db:setup

Populate database with sample data

    $ rails db:populate

Set up the following environment variables:

* DATABASE_URL
* WHERE2HELP_DATABASE_PASSWORD
* SENDGRID_USERNAME
* SENDGRID_PASSWORD
* FQDN
* SECRET_KEY_BASE
* RAILS_ENV
* DATABASE_URL          
* LANG                  
* RACK_ENV              
* RAILS_SERVE_STATIC_FILE

Start up rails!

    $ rails server

# Deployment

[Travis CI](https://travis-ci.org/) is set up to automatically deploy applications to [Heroku](https://www.heroku.com):

* the `master` branch is automatically deployed to the staging environment:  
https://staging-where2help.herokuapp.com/

* the more stable `fsw` branch is automatically deployed to:  
https://where2help.herokuapp.com/

If you want to skip continuous integration for your commit, add this to your commit message:

    [ci skip]

Add postgres step to readme
Add postgres step to readme