Skip to content

Commit

Permalink
Add section about deploying with now to the docs (gatsbyjs#3641)
Browse files Browse the repository at this point in the history
* Add section to the deploy docs page for deploying to now

* Add section to the deploy docs page for deploying to now

* Add install code snippet

* Update deploy-gatsby.md
  • Loading branch information
hamlim authored and jastack committed Jan 24, 2018
1 parent 972016a commit 02cb881
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions docs/docs/deploy-gatsby.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ title: "Deploying Gatsby"
* [GitHub Pages](/docs/deploy-gatsby/#github-pages)
* [GitLab Pages](/docs/deploy-gatsby/#gitlab-pages)
* [Heroku](/docs/deploy-gatsby/#heroku)
* [Now](/docs/deploy-gatsby/#now)

## Netlify

Expand Down Expand Up @@ -245,6 +246,25 @@ Finally, add a `static.json` file in the root of your project to define the dire
}
```

## Now

In order to deploy your Gatsby project using [Now](https://zeit.co/now), you can do the following:

1. Install the Now CLI

`npm install -g now`

2. Install a node server package (such as `serve`, or `http-server`)

`npm install --save serve`

3. Add a `start` script to your `package.json` file, this is what Now will use to run your application:


`"start": "serve public/"`

4. Run `now` at the root of your Gatsby project, this will upload your project, run the `build` script, and then your `start` script.

## Debugging tips

### Don't minify HTML
Expand Down

0 comments on commit 02cb881

Please sign in to comment.