Skip to content

Commit 7d82964

Browse files
replaidgaearon
authored andcommitted
Update now.sh deployment instructions. (#1710)
* Update now.sh deployment instructions. Incorporates changes announced at https://zeit.co/blog/now-static that streamline Now deployments from CRA projects. * Remove unintentional reference to deployed app. No emergency; just didn't intend to tout or send traffic to my prototype.
1 parent 297ce6a commit 7d82964

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

packages/react-scripts/template/README.md

+21-1
Original file line numberDiff line numberDiff line change
@@ -1489,7 +1489,27 @@ When you build the project, Create React App will place the `public` folder cont
14891489
14901490
### Now
14911491
1492-
See [this example](https://github.com/xkawi/create-react-app-now) for a zero-configuration single-command deployment with [now](https://zeit.co/now).
1492+
[now](https://zeit.co/now) offers a zero-configuration single-command deployment.
1493+
1494+
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`.
1495+
1496+
2. Install `serve` by running `npm install --save serve`.
1497+
1498+
3. Add this line to `scripts` in `package.json`:
1499+
1500+
```
1501+
"now-start": "serve build/",
1502+
```
1503+
1504+
4. Run `now` from your project directory. You will see a **now.sh** URL in your output like this:
1505+
1506+
```
1507+
> Ready! https://your-project-dirname-tpspyhtdtk.now.sh (copied to clipboard)
1508+
```
1509+
1510+
Paste that URL into your browser when the build is complete, and you will see your deployed app.
1511+
1512+
Details are available in [this article.](https://zeit.co/blog/now-static)
14931513
14941514
### S3 and CloudFront
14951515

0 commit comments

Comments
 (0)