Skip to content

Commit

Permalink
Create deploying to production documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
OtterleyW committed Nov 30, 2018
1 parent 7f98db0 commit c2b364a
Showing 1 changed file with 16 additions and 11 deletions.
27 changes: 16 additions & 11 deletions docs/deploying-to-production.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@

## Getting started

The easiest way to get started is deploying the application to Heroku. Before creating the app you need three accounts: [Heroku](https://heroku.com/), [Stripe](https://stripe.com/fi) and [MapBox](https://www.mapbox.com/). Creating the accounts is free unless you start heavily using them.
The easiest way to get started is deploying the application to Heroku. Before creating the app you
need three accounts: [Heroku](https://heroku.com/), [Stripe](https://stripe.com/fi) and
[MapBox](https://www.mapbox.com/). Creating the accounts is free unless you start heavily using
them.

Read more from [detailed Heroku instructions](#deploying-to-heroku) with a deploy-to-Heroku
button.
Read more from [detailed Heroku instructions](#deploying-to-heroku) with a deploy-to-Heroku button.

In other production environments, make sure that you have [Node.js](https://nodejs.org/) and
[Yarn](https://yarnpkg.com/) installed. You will also need accounts to Stripe and MapBox.
[Yarn](https://yarnpkg.com/) installed. You will also need accounts to Stripe and MapBox.

After this you need to do the following steps:

Expand Down Expand Up @@ -57,16 +59,18 @@ Start the server:
* [Domains and certificates](#domains-and-certificates)
* [Heroku logs](#heroku-logs)

Before creating the app you need three accounts: [Heroku](https://heroku.com/), [Stripe](https://stripe.com/fi) and [MapBox](https://www.mapbox.com/). Creating the accounts is free unless you start heavily using them.
Before creating the app you need three accounts: [Heroku](https://heroku.com/),
[Stripe](https://stripe.com/fi) and [MapBox](https://www.mapbox.com/). Creating the accounts is free
unless you start heavily using them.

### Forking the repository

When deploying to Heroku you should use a forked repository. This makes it possible to make
[manual deploys](https://devcenter.heroku.com/articles/github-integration#manual-deploys) after
changes to environment variables.

If you haven't done this already see [Customization guide](./customization-guide.md#fork-the-repository) for more
instructions.
If you haven't done this already see
[Customization guide](./customization-guide.md#fork-the-repository) for more instructions.

### Creating a new app

Expand All @@ -86,7 +90,7 @@ Connecting your GitHub account to Heroku makes it possible to do automatic and m
dashboard using GitHub branches.

1. In Heroku dashboard go to _Deploy tab_ and find _Deployment method_ section.
2. Click _Connect to GitHub_ button. After that, you will see _Connect to GitHub_ section.
2. Click _Connect to GitHub_ button. After that, you will see _Connect to GitHub_ section.
3. Search the repository you have forked to your account and click connect.

![Connect GitHub to Heroku](./assets/deploying-to-production/heroku-connect-git.png)
Expand All @@ -105,16 +109,17 @@ delete the app if needed.

#### Updating enviroment variables

In the _Settings tab_ click _"Reveal Config Vars"_ button to see the applications environment variables.
Click edit to update them or add new ones if needed.
In the _Settings tab_ click _"Reveal Config Vars"_ button to see the applications environment
variables. Click edit to update them or add new ones if needed.

> **NOTE:** If you change these variables, you need to deploy the app again.
![Heroku settings](./assets/deploying-to-production/heroku-config-vars.png)

#### Domains and certificates

Heroku manages SSL certificates automatically for new applications. You can change your domain and SSH settings in the _Settings tab_.
Heroku manages SSL certificates automatically for new applications. You can change your domain and
SSH settings in the _Settings tab_.

Read more from Heroku docs:

Expand Down

0 comments on commit c2b364a

Please sign in to comment.