From fb9860defd9704d2941a2ef7bdb9c13ed462786b Mon Sep 17 00:00:00 2001 From: Abdallah Hemedah Date: Sat, 9 May 2020 18:37:13 +0200 Subject: [PATCH] =?UTF-8?q?docs:=20=F0=9F=93=9Aadd=20netlify=20deployment?= =?UTF-8?q?=20(#23)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/deployment/netlify.md | 38 +++++++++++++++++++++++++++++++++++++- 1 file changed, 37 insertions(+), 1 deletion(-) diff --git a/docs/deployment/netlify.md b/docs/deployment/netlify.md index 3b74da6..d7cbf33 100644 --- a/docs/deployment/netlify.md +++ b/docs/deployment/netlify.md @@ -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.🥳🥳