Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Meta
create-react-app
Commits
590334e1
Commit
590334e1
authored
8 years ago
by
Mathias Biilmann Christensen
Committed by
Dan Abramov
8 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Add Netlify to deploy instructions
parent
a8d29c8c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
packages/react-scripts/template/README.md
+30
-0
packages/react-scripts/template/README.md
with
30 additions
and
0 deletions
+30
-0
packages/react-scripts/template/README.md
+
30
-
0
View file @
590334e1
...
...
@@ -46,6 +46,7 @@ You can find the most recent version of this guide [here](https://github.com/fac
-
[
GitHub Pages
](
#github-pages
)
-
[
Heroku
](
#heroku
)
-
[
Modulus
](
#modulus
)
-
[
Netlify
](
#netlify
)
-
[
Now
](
#now
)
-
[
Surge
](
#surge
)
-
[
Something Missing?
](
#something-missing
)
...
...
@@ -911,6 +912,35 @@ You can find instructions in [Deploying React with Zero Configuration](https://b
See the
[
Modulus blog post
](
http://blog.modulus.io/deploying-react-apps-on-modulus
)
on how to deploy your react app to Modulus.
## Netlify
**To do a manual deploy to Netlify's CDN:**
```
sh
npm
install
netlify-cli
netlify deploy
```
Choose
`build`
as the path to deploy.
**To setup continuous delivery:**
With this setup Netlify will build and deploy when you push to git or open a pull request:
1.
[
Start a new netlify project
](
https://app.netlify.com/signup
)
2.
Pick your Git hosting service and select your repository
3.
Click
`Build your site`
**Support for client site routing:**
To support
`pushState`
, make sure to create a
`public/_redirects`
file with the following rewrite rules:
```
/* /index.html 200
```
When you build the project, Create React App will place the
`public`
folder contents into the build output.
### 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
)
.
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment