Skip to content

Commit

Permalink
feat(docs): Add Deploying to Now doc (#8729)
Browse files Browse the repository at this point in the history
  • Loading branch information
romulomachado authored and amberleyromo committed Oct 4, 2018
1 parent 6664990 commit fc97f96
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions docs/docs/deploying-to-now.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
title: Deploying to 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:

```json:title=package.json
{
"scripts": {
"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.

0 comments on commit fc97f96

Please sign in to comment.