Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add section about deploying with now to the docs #3641

Merged
merged 5 commits into from
Jan 21, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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