-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(docs): Add Deploying to Now doc (#8729)
- Loading branch information
1 parent
6664990
commit fc97f96
Showing
1 changed file
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |