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: packages/react-scripts/template/README.md
+30
Original file line number
Diff line number
Diff line change
@@ -46,6 +46,7 @@ You can find the most recent version of this guide [here](https://github.com/fac
46
46
-[GitHub Pages](#github-pages)
47
47
-[Heroku](#heroku)
48
48
-[Modulus](#modulus)
49
+
-[Netlify](#netlify)
49
50
-[Now](#now)
50
51
-[Surge](#surge)
51
52
-[Something Missing?](#something-missing)
@@ -911,6 +912,35 @@ You can find instructions in [Deploying React with Zero Configuration](https://b
911
912
912
913
See the [Modulus blog post](http://blog.modulus.io/deploying-react-apps-on-modulus) on how to deploy your react app to Modulus.
913
914
915
+
## Netlify
916
+
917
+
**To do a manual deploy to Netlify's CDN:**
918
+
919
+
```sh
920
+
npm install netlify-cli
921
+
netlify deploy
922
+
```
923
+
924
+
Choose `build` as the path to deploy.
925
+
926
+
**To setup continuous delivery:**
927
+
928
+
With this setup Netlify will build and deploy when you push to git or open a pull request:
929
+
930
+
1. [Start a new netlify project](https://app.netlify.com/signup)
931
+
2. Pick your Git hosting service and select your repository
932
+
3. Click `Build your site`
933
+
934
+
**Support for client site routing:**
935
+
936
+
To support `pushState`, make sure to create a `public/_redirects` file with the following rewrite rules:
937
+
938
+
```
939
+
/* /index.html 200
940
+
```
941
+
942
+
When you build the project, Create React App will place the `public` folder contents into the build output.
943
+
914
944
### Now
915
945
916
946
See [this example](https://github.com/xkawi/create-react-app-now) for a zero-configuration single-command deployment with [now](https://zeit.co/now).
0 commit comments