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
Copy file name to clipboardExpand all lines: docusaurus/docs/deployment.md
+12-10
Original file line number
Diff line number
Diff line change
@@ -427,23 +427,25 @@ When you build the project, Create React App will place the `public` folder cont
427
427
428
428
## [Now](https://zeit.co/now)
429
429
430
-
Now offers a zero-configuration single-command deployment. You can use `now` to deploy your app for free.
430
+
[Now](https://zeit.co/docs) offers a simple, single-command deployment. You can use `now` to deploy your app for free.
431
431
432
-
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`.
432
+
The first step is to install Now. You can do this by installing [the Now Desktop app](https://zeit.co/download), which also installs Now CLI and keeps it up-to-date, or by [installing Now CLI](https://zeit.co/download#now-cli) directly with npm:
433
433
434
-
2. Build your app by running `npm run build`.
434
+
```shell
435
+
npm i -g now
436
+
```
435
437
436
-
3. Move into the build directory by running `cd build`.
438
+
To deploy your built project directly with Now CLI in your terminal, without any configuration:
437
439
438
-
4. Run `now --name your-project-name` from within the build directory. You will see a **now.sh** URL in your output like this:
440
+
1. Build your app by running `npm run build`.
439
441
440
-
```
441
-
> Ready! https://your-project-name-tpspyhtdtk.now.sh (copied to clipboard)
442
-
```
442
+
2. Move into the build directory by running `cd build`.
443
+
444
+
3. Run `now --name your-project-name` from within the build directory. You will be given a **now.sh** URL as a response as your build is deployed, similar to the following: https://my-cra-project-4rx7b16z3.now.sh/
443
445
444
-
Paste that URL into your browser when the build is complete, and you will see your deployed app.
446
+
Click or paste the deployment URL into your browser when the build is complete and you will see your deployed app.
445
447
446
-
Details are available in[this article.](https://zeit.co/blog/unlimited-static)
448
+
For more information on deploying React applications with Now, including automatically building your application fresh inthe cloud, setting up routes to rewrite all paths to the index.html file, and setting up caching headers for speed, see [the ZEIT Guide for Deploying a React app with Create React App](https://zeit.co/guides/deploying-react-with-now-cra/).
447
449
448
450
## [S3](https://aws.amazon.com/s3) and [CloudFront](https://aws.amazon.com/cloudfront/)
0 commit comments