<commit_before>Included here are:

  * [Production Deployment](#production_deployment)
  * [Development Environment Setup](#development-environment-setup)

# Production Deployment 

## Prerequisites

* Git [Installing Git](http://git-scm.com/book/en/Getting-Started-Installing-Git)

### Step By Step Guide

#### Obtain a copy of the application

Using git, clone the github repository to obtain a local copy on your computer.

```sh
  $ git clone <EMAIL>:city72/city-72.git
```

This will create a folder with name `city-72` to be called within this guide your "project folder".

#### Setup Heroku

Follow these steps:

  1. Create a [heroku account](http://www.heroku.com) (if you don't already have one)
  2. Install the Heroku Toolbelt on your computer & login
      * Step 2 and 3 of the [heroku quickstart guide](https://devcenter.heroku.com/articles/quickstart)
  3. Add your credit card information to your heroku account. If you are just testing the site you can choose free options below. NOTE: The free version of the site on Heroku is not recommended for the public launch of your City72 site that may experience a high volume of traffic during an emergency. 


#### Configure an application on Heroku with 2 dynos

First, go to your heroku account and create an application to be used for the project. When asked for the number of `web dynos` to be used in your application select 2. Two dynos is the recommended setting for your application in order to keep the app reliable and responsive to traffic. 

For testing purposes, you can choose an application with no extra dynos. NOTE: Sites with no extra dynos "go to sleep" and can be slow to wake up. So, this free level of service is not appropriate for the public launch of your site. For the full launch of your site, create an application with at least two dynos.

#### Configure the Heroku App for your project

Go to you project folder, and run the following command:

```sh
  $ git remote add heroku <EMAIL>:YOURAPPNAME.git
```

(In your heroku account, choose your app's settings, and you will get the Git URL, from the info section)

#### Install add-ons - Production (adds $100/month)

**postgresql:** This add-on has cost of $50 per month. It's is the database in your application.

```sh
  $ heroku addons:add heroku-postgresql:standard-yanari -a YOURAPPNAME
```


**pg-backups:** This add-on is free. It creates backups of your database.

```sh
  $ heroku addons:add pgbackups:auto-week -a YOURAPPNAME
```

**sengrid:** This add-on is free. It's used to send emails from your application.

```sh
  $ heroku addons:add sendgrid -a YOURAPPNAME
```

**newrelic:** This add-on is free. It monitors your application performance

```sh
  $ heroku addons:add newrelic:stark -a YOURAPPNAME
```

**cloudinary:** This add-on has a cost of $50 per month. It is used to store and host images in your application.

```sh
 $ heroku addons:add cloudinary:bronze -a YOURAPPNAME
```


#### Install add-ons - Testing Site (free)

**postgresql:** This version of the add on is free. It's is used in order to have a database in your application. This version is not robust enough for normal amounts of web traffic. Only use the free version for testing purposes.


```sh
  $ heroku addons:add heroku-postgresql -a YOURAPPNAME
```


**pg-backups:** This add-on is free. It creates backups of your database.

```sh
  $ heroku addons:add pgbackups:auto-week -a YOURAPPNAME
```

**sengrid:** This add-on is free. It's used to send emails from your application.

```sh
  $ heroku addons:add sendgrid -a YOURAPPNAME
```

**newrelic:** This add-on is free. It monitors your application performance
<commit_msg>text change<commit_after>Included here are:

  * [Production Deployment](#production_deployment)
  * [Development Environment Setup](#development-environment-setup)

# Production Deployment 

## Prerequisites

* Git [Installing Git](http://git-scm.com/book/en/Getting-Started-Installing-Git)

### Step By Step Guide

#### Obtain a copy of the application

Using git, clone the github repository to obtain a local copy on your computer.

```sh
  $ git clone <EMAIL>:city72/city-72.git
```

This will create a folder with name `city-72` to be called within this guide your "project folder".

#### Setup Heroku

Follow these steps:

  1. Create a [heroku account](http://www.heroku.com) (if you don't already have one)
  2. Install the Heroku Toolbelt on your computer & login
      * Step 2 and 3 of the [heroku quickstart guide](https://devcenter.heroku.com/articles/quickstart)
  3. Add your credit card information to your heroku account. If you are just testing the site you can choose free options below. NOTE: The free version of the site on Heroku is not recommended for the public launch of your City72 site that may experience a high volume of traffic during an emergency. 


#### Configure an application on Heroku with 2 dynos

First, go to your heroku account and create an application to be used for the project. When asked for the number of `web dynos` to be used in your application select 2. Two dynos is the recommended setting for your application in order to keep the app reliable and responsive to traffic. 

For testing purposes, you can choose an application with no extra dynos. NOTE: Sites with no extra dynos "go to sleep" and can be slow to wake up. So, this free level of service is not appropriate for the public launch of your site. For the full launch of your site, create an application with at least two dynos.

#### Configure the Heroku App for your project

Go to you project folder, and run the following command:

```sh
  $ git remote add heroku <EMAIL>:YOURAPPNAME.git
```

(In your heroku account, choose your app's settings, and you will get the Git URL, from the info section)

#### Install add-ons - Production (adds $100/month)

If you would prefer to test the site for free use the add-on instructions in the next section. NOTE: If you know you will launch this site to the public use these paid add-ons.

**postgresql:** This add-on has cost of $50 per month. It's is the database in your application.

```sh
  $ heroku addons:add heroku-postgresql:standard-yanari -a YOURAPPNAME
```


**pg-backups:** This add-on is free. It creates backups of your database.

```sh
  $ heroku addons:add pgbackups:auto-week -a YOURAPPNAME
```

**sengrid:** This add-on is free. It's used to send emails from your application.

```sh
  $ heroku addons:add sendgrid -a YOURAPPNAME
```

**newrelic:** This add-on is free. It monitors your application performance

```sh
  $ heroku addons:add newrelic:stark -a YOURAPPNAME
```

**cloudinary:** This add-on has a cost of $50 per month. It is used to store and host images in your application.

```sh
 $ heroku addons:add cloudinary:bronze -a YOURAPPNAME
```


#### Install add-ons - Testing Site (free)

If you are using the paid add-ons above, skip this section.

**postgresql:** This version of the add on is free. It's is used in order to have a database in your application. This version is not robust enough for normal amounts of web traffic. Only use the free version for testing purposes.


```sh
  $ heroku addons:add heroku-postgresql -a YOURAPPNAME
```


**pg-backups:** This add-on is free. It creates backups of your database.

```sh
  $ heroku addons:add pgbackups:auto-week -a YOURAPPNAME
```

**sengrid:** This add-on is free. It's used to send emails from your application.

```sh
  $ heroku addons:add sendgrid -a YOURAPPNAME
```

**newrelic:** This add-on is free. It monitors your application performance

{'fraction_non_alphanumeric': 0.08682991396426208, 'fraction_numerical': 0.005823957643944408, 'mean_word_length': 4.074546675621222, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3416334', 'n_tokens_mistral': 2246, 'n_tokens_neox': 2111, 'n_words': 1070}