<commit_before>[![Build Status](https://travis-ci.org/RefugeRestrooms/refugerestrooms.svg)](https://travis-ci.org/RefugeRestrooms/refugerestrooms) [![Stories in Ready](https://badge.waffle.io/RefugeRestrooms/refugerestrooms.png?label=ready)](https://waffle.io/RefugeRestrooms/refugerestrooms)
# REFUGE restrooms

Providing safe restroom access for transgender, intersex, and gender noncomforming individuals.

REFUGE is an effort to fill the hole left by the now-defunct Safe2Pee website. It provides a resource for trans\* and queer individuals in need of gender neutral and other safe restrooms.

This project is open source. Feel free to contribute. We could use the help.

## Deployment
Currently right now we deploy to heroku. Our application is small enough that it is free to host on Heroku, and we dont mind the server having to wake up if nobody has accessed the site in a while.

We have both a staging and a production instance on heroku. The staging instance can be found at http://refugestaging.herokuapp.com/

Here are the steps to deploy:
 1. Talk to @tkwidmer about getting access as a collaborator for both the production and staging heroku instances.
 2. Link your local repo to the heroku remote repos. I suggest doing it this way:
  * `git remote add production <EMAIL>:refugerestrooms.git`
  * `git remote add staging git@heroku.com:refugestaging.git`
 3. `git flow release start %{release number}`
 4. `git push staging release/%{release number}:master` and verify your changes on staging. (run any migrations `heroku run rake db:migrate --remote staging`)
 5. Run `git shortlog --grep "Merge pull request #" %{previous release}..HEAD` and copy the contents.
 6. `git flow release finish` and copy the contents of #5 into the release tags.
 7. `git push` and `git push --tags`
 8. `git push production master` and run any migrations `heroku run rake db:migrate --remote production`



## Tech

* Ruby Version - ruby-2.0.0-p247
* Ruby on Rails
* RSpec
* Javascript
* HTML / SASS
* Postgres
* Geocoder Gem
* Google Maps API
* Twitter Boostrap Framework
* Deployed on Heroku

## Links to Refuge project on other platforms

- [SMS messaging Twillio Application](https://github.com/RefugeRestrooms/refugerest_sms)
- [Android Native Application](https://github.com/RefugeRestrooms/refugerestrooms-android)
- [iOS Native Application](https://github.com/RefugeRestrooms/refuge-ios)
- [Yo Application](https://github.com/raptortech-js/YoRestrooms)

## IRC

Server: irc.freenode.com
Channel: #refugerestrooms<commit_msg>Add instructions for auto deploys<commit_after>[![Build Status](https://travis-ci.org/RefugeRestrooms/refugerestrooms.svg)](https://travis-ci.org/RefugeRestrooms/refugerestrooms) [![Stories in Ready](https://badge.waffle.io/RefugeRestrooms/refugerestrooms.png?label=ready)](https://waffle.io/RefugeRestrooms/refugerestrooms)
# REFUGE restrooms

Providing safe restroom access for transgender, intersex, and gender noncomforming individuals.

REFUGE is an effort to fill the hole left by the now-defunct Safe2Pee website. It provides a resource for trans\* and queer individuals in need of gender neutral and other safe restrooms.

This project is open source. Feel free to contribute. We could use the help.

## Deployment

 This repo is set to automaticly deploy to heroku. Any time there is a merge into develop, the develop branch will get deployed to refugestaging.herokuapp.com. Any time there is a merge into master, the master branch will be released to refugerestrooms.org
 
 When you want to make a release, you should do the following:
 1. Check the status of the app on refugestaging.herokuapp.com and make sure its functional. 
 2. Make sure the the most recent build of develop is passing on TravisCI
 3. Run `git flow release start %{release number}`
 4. Run `git shortlog --grep "Merge pull request #" %{previous release}..HEAD` and copy the contents into a new issue with the release tag here on github. This command gives you a list of PRs merged since the previous release.
 5. `git flow release finish` and copy the contents of #4 into the release tags.
 6. `git push` in the master branch and `git push --tags`
  - this will trigger the heroku deploy to production. 
 
#### Manual Releases
Currently right now we deploy to heroku. Our application is small enough that it is free to host on Heroku, and we dont mind the server having to wake up if nobody has accessed the site in a while.

We have both a staging and a production instance on heroku. The staging instance can be found at http://refugestaging.herokuapp.com/

Here are the steps to deploy:
 1. Talk to @tkwidmer about getting access as a collaborator for both the production and staging heroku instances.
 2. Link your local repo to the heroku remote repos. I suggest doing it this way:
  * `git remote add production <EMAIL>:refugerestrooms.git`
  * `git remote add staging <EMAIL>.com:refugestaging.git`
 3. `git flow release start %{release number}`
 4. `git push staging release/%{release number}:master` and verify your changes on staging. (run any migrations `heroku run rake db:migrate --remote staging`)
 5. Run `git shortlog --grep "Merge pull request #" %{previous release}..HEAD` and copy the contents.
 6. `git flow release finish` and copy the contents of #5 into the release tags.
 7. `git push` and `git push --tags`
 8. `git push production master` and run any migrations `heroku run rake db:migrate --remote production`



## Tech

* Ruby Version - ruby-2.1.1
* Ruby on Rails
* RSpec
* Javascript
* HTML / SASS
* Postgres
* Geocoder Gem
* Google Maps API
* Twitter Boostrap Framework
* Deployed on Heroku

## Links to Refuge project on other platforms

- [SMS messaging Twillio Application](https://github.com/RefugeRestrooms/refugerest_sms)
- [Android Native Application](https://github.com/RefugeRestrooms/refugerestrooms-android)
- [iOS Native Application](https://github.com/RefugeRestrooms/refuge-ios)
- [Yo Application](https://github.com/raptortech-js/YoRestrooms)

## IRC

Server: irc.freenode.com
Channel: #refugerestrooms
{'fraction_non_alphanumeric': 0.08362196932211777, 'fraction_numerical': 0.005937654626422563, 'mean_word_length': 4.443447037701975, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, 'https://': 16, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 1, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4057086', 'n_tokens_mistral': 1820, 'n_tokens_neox': 1706, 'n_words': 764}