Skip to content

Commit c8f2047

Browse files
purpleconestuxsudo
authored andcommitted
Update README.md for now deployments (facebook#2372)
Simplified steps for deploying app to `now` as a static site. No need to `serve` script in `package.json` file. As of May 15, 2017, all static deployments on `now` are free and unlimited.
1 parent 76361fc commit c8f2047

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

packages/react-scripts/template/README.md

+6-10
Original file line numberDiff line numberDiff line change
@@ -1774,27 +1774,23 @@ When you build the project, Create React App will place the `public` folder cont
17741774
17751775
### Now
17761776
1777-
[now](https://zeit.co/now) offers a zero-configuration single-command deployment.
1777+
[now](https://zeit.co/now) offers a zero-configuration single-command deployment. You can use `now` to deploy your app for free.
17781778
17791779
1. Install the `now` command-line tool either via the recommended [desktop tool](https://zeit.co/download) or via node with `npm install -g now`.
17801780
1781-
2. Install `serve` by running `npm install --save serve`.
1781+
2. Build your app by running `npm run build`.
17821782
1783-
3. Add this line to `scripts` in `package.json`:
1783+
3. Move into the build directory by running `cd build`.
17841784
1785-
```
1786-
"now-start": "serve -s build/",
1787-
```
1788-
1789-
4. Run `now` from your project directory. You will see a **now.sh** URL in your output like this:
1785+
4. Run `now --name your-project-name` from within the build directory. You will see a **now.sh** URL in your output like this:
17901786
17911787
```
1792-
> Ready! https://your-project-dirname-tpspyhtdtk.now.sh (copied to clipboard)
1788+
> Ready! https://your-project-name-tpspyhtdtk.now.sh (copied to clipboard)
17931789
```
17941790
17951791
Paste that URL into your browser when the build is complete, and you will see your deployed app.
17961792
1797-
Details are available in [this article.](https://zeit.co/blog/now-static)
1793+
Details are available in [this article.](https://zeit.co/blog/unlimited-static)
17981794
17991795
### S3 and CloudFront
18001796

0 commit comments

Comments
 (0)