From 341eca67604387b75493f1bda27e79e7826aa81f Mon Sep 17 00:00:00 2001 From: Ryan Platte Date: Fri, 3 Mar 2017 14:20:05 -0500 Subject: [PATCH 1/2] Update now.sh deployment instructions. Incorporates changes announced at https://zeit.co/blog/now-static that streamline Now deployments from CRA projects. --- packages/react-scripts/template/README.md | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/packages/react-scripts/template/README.md b/packages/react-scripts/template/README.md index 3c95313946b..6c657938b41 100644 --- a/packages/react-scripts/template/README.md +++ b/packages/react-scripts/template/README.md @@ -1478,7 +1478,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://aosa-features-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 From 10f59d99997975199e36f90070634d4d7d042737 Mon Sep 17 00:00:00 2001 From: Ryan Platte Date: Fri, 3 Mar 2017 18:10:18 -0500 Subject: [PATCH 2/2] Remove unintentional reference to deployed app. No emergency; just didn't intend to tout or send traffic to my prototype. --- packages/react-scripts/template/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-scripts/template/README.md b/packages/react-scripts/template/README.md index 6c657938b41..d4a2857340c 100644 --- a/packages/react-scripts/template/README.md +++ b/packages/react-scripts/template/README.md @@ -1493,7 +1493,7 @@ When you build the project, Create React App will place the `public` folder cont 4. Run `now` from your project directory. You will see a **now.sh** URL in your output like this: ``` - > Ready! https://aosa-features-tpspyhtdtk.now.sh (copied to clipboard) + > 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.