You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* 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.
Copy file name to clipboardExpand all lines: packages/react-scripts/template/README.md
+21-1Lines changed: 21 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1489,7 +1489,27 @@ When you build the project, Create React App will place the `public` folder cont
1489
1489
1490
1490
### Now
1491
1491
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)
0 commit comments