Skip to content

Commit

Permalink
docs: 馃摎add netlify deployment (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
hemedah101 committed May 9, 2020
1 parent 1867a5b commit fb9860d
Showing 1 changed file with 37 additions and 1 deletion.
38 changes: 37 additions & 1 deletion docs/deployment/netlify.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,39 @@
# Deploy to Netlify

This docs is still awaiting help 馃槩If you want to help with this documenation please contact to us
### Easy 5-Step Deployment Process

_Step 1:_ Create a `netlifty.toml` file in the root directory of your project and copy this code below. Edit these settings if you did not follow the boilerplate structure. More settings available here (https://docs.netlify.com/configure-builds/file-based-configuration/#sample-file)

```
[build]
# Directory to change to before starting a build.
# This is where we will look for package.json/.nvmrc/etc.
base = "/"
# Directory (relative to root of your repo) that contains the deploy-ready
# HTML files and assets generated by the build. If a base directory has
# been specified, include it in the publish directory path.
publish = "./build"
# Default build command.
command = "npm run build"
# The following redirect is intended for use with most SPAs that handle routing internally.
[[redirects]]
from = "/*"
to = "/index.html"
status = 200
```

_Step 2:_ Commit your code and push your latest updates to a GitHub repository.

_Step 3:_ Register or Login in at Netlify (https://app.netlify.com/).

_Step 4:_ In your account | team page click `New site from git` then chose your repository.

_Step 5:_ Click deploy.


> Note: No need to change any setting in the last step as `netlify.toml` overwrites these settings.
Now your code will be deployed automatically to netlify on every push to the default branch of your repository.馃コ馃コ

0 comments on commit fb9860d

Please sign in to comment.