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: template/README.md
+16-8Lines changed: 16 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,10 @@ You can find the most recent version of this guide [here](https://github.com/fac
19
19
-[Adding Bootstrap](#adding-bootstrap)
20
20
-[Adding Flow](#adding-flow)
21
21
-[Integrating with a Node Backend](#integrating-with-a-node-backend)
22
-
-[Deploying](#deploying)
22
+
-[Deployment](#deployment)
23
+
-[Now](#now)
24
+
-[Heroku](#heroku)
25
+
-[GitHub Pages](#github-pages)
23
26
-[Something Missing?](#something-missing)
24
27
25
28
## Updating to New Releases
@@ -387,7 +390,15 @@ We will consider integrating more tightly with Flow in the future so that you do
387
390
388
391
Check out [this tutorial](https://www.fullstackreact.com/articles/using-create-react-app-with-a-server/) for instructions on integrating an app with a Node backend running on another port, and using `fetch()` to access it. You can find the companion GitHub repository [here](https://github.com/fullstackreact/food-lookup-demo).
389
392
390
-
## Deploying
393
+
## Deployment
394
+
395
+
### Now
396
+
397
+
See [this example](https://github.com/xkawi/create-react-app-now) for a zero-configuration single-command deployment with [now](https://zeit.co/now).
398
+
399
+
### Heroku
400
+
401
+
Use the [Heroku Buildpack for create-react-app](https://github.com/mars/create-react-app-buildpack).
391
402
392
403
### GitHub Pages
393
404
@@ -407,11 +418,12 @@ It could look like this:
407
418
Now, whenever you run `npm run build`, you will see a cheat sheet with a sequence of commands to deploy to GitHub pages:
@@ -421,10 +433,6 @@ Note that GitHub Pages doesn't support routers that use the HTML5 `pushState` hi
421
433
* You could switch from using HTML5 history API to routing with hashes. If you use React Router, you can switch to `hashHistory` for this effect, but the URL will be longer and more verbose (for example, `http://user.github.io/todomvc/#/todos/42?_k=yknaj`). [Read more](https://github.com/reactjs/react-router/blob/master/docs/guides/Histories.md#histories) about different history implementations in React Router.
422
434
* Alternatively, you can use a trick to teach GitHub Pages to handle 404 by redirecting to your `index.html` page with a special redirect parameter. You would need to add a `404.html` file with the redirection code to the `build` folder before deploying your project, and you’ll need to add code handling the redirect parameter to `index.html`. You can find a detailed explanation ofthis technique [inthis guide](https://github.com/rafrex/spa-github-pages).
423
435
424
-
### Heroku
425
-
426
-
Use the [Heroku Buildpack for create-react-app](https://github.com/mars/create-react-app-buildpack).
427
-
428
436
## Something Missing?
429
437
430
438
If you have ideas for more “How To” recipes that should be on this page, [let us know](https://github.com/facebookincubator/create-react-app/issues) or [contribute some!](https://github.com/facebookincubator/create-react-app/edit/master/template/README.md)
0 commit comments