mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-01-12 22:46:30 +08:00
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.
This commit is contained in:
@@ -1489,7 +1489,27 @@ When you build the project, Create React App will place the `public` folder cont
|
||||
|
||||
### Now
|
||||
|
||||
See [this example](https://github.com/xkawi/create-react-app-now) for a zero-configuration single-command deployment with [now](https://zeit.co/now).
|
||||
[now](https://zeit.co/now) offers a zero-configuration single-command deployment.
|
||||
|
||||
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`.
|
||||
|
||||
2. Install `serve` by running `npm install --save serve`.
|
||||
|
||||
3. Add this line to `scripts` in `package.json`:
|
||||
|
||||
```
|
||||
"now-start": "serve build/",
|
||||
```
|
||||
|
||||
4. Run `now` from your project directory. You will see a **now.sh** URL in your output like this:
|
||||
|
||||
```
|
||||
> Ready! https://your-project-dirname-tpspyhtdtk.now.sh (copied to clipboard)
|
||||
```
|
||||
|
||||
Paste that URL into your browser when the build is complete, and you will see your deployed app.
|
||||
|
||||
Details are available in [this article.](https://zeit.co/blog/now-static)
|
||||
|
||||
### S3 and CloudFront
|
||||
|
||||
|
||||
Reference in New Issue
Block a user