-
Notifications
You must be signed in to change notification settings - Fork 392
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: 馃摎add netlify deployment (#23)
- Loading branch information
1 parent
1867a5b
commit fb9860d
Showing
1 changed file
with
37 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.馃コ馃コ |