From a69bee5cd05811741cdc1579c91d544568f8a7e9 Mon Sep 17 00:00:00 2001 From: "MD. Ariful Alam" Date: Sat, 11 Sep 2021 12:51:05 +0600 Subject: [PATCH 1/2] Update deployment guide --- README.md | 31 +++++++++---------------------- 1 file changed, 9 insertions(+), 22 deletions(-) diff --git a/README.md b/README.md index 30e767b..186f9e5 100644 --- a/README.md +++ b/README.md @@ -383,26 +383,6 @@ Once you are done with your setup and have completed all steps above, you need t **1. Github Pages:** -(BASIC) - - Open package.json, and change homepage's value to https://username.github.io/repoName. - - ```js - // package.json - { - // ... - "homepage": "https://username.github.io/repoName", - } - ``` - - - Now commit to your main branch - - The CI/CD pipeline will publish your page at the gh-pages branch. - - Go to Settings -> Pages -> Source and change the branch to gh-pages - - You can see the link where it is published. - - Any time you commit a change to main branch the website will automatically update. - - If you see only README at username.github.io/repoName, be sure to change your GitHub Page's source to gh-pages branch. See [how to](https://docs.github.com/en/pages/getting-started-with-github-pages/configuring-a-publishing-source-for-your-github-pages-site). - -(ADVANCED) - - You can take this a step further by creating a repository in your name. - Rename your forked repository to username.github.io in github, where username is your GitHub username (or organization name). - Open package.json, and change homepage's value to https://username.github.io. @@ -413,9 +393,16 @@ Once you are done with your setup and have completed all steps above, you need t "homepage": "https://username.github.io", } ``` - - - Your personal portfolio will be live at username.github.io. For more info, visit [here](https://create-react-app.dev/docs/deployment/#github-pages). + - Now commit to your main branch + - The CI/CD pipeline will publish your page at the gh-pages branch automatically. + - Go to your repo's Settings -> Pages -> Source and change the branch to gh-pages + - Your personal portfolio will be live at username.github.io. + - Any time you commit a change to main branch the website will automatically update. + + +Manual deployment is also available by running npm run deploy. For more info, visit [here](https://create-react-app.dev/docs/deployment/#github-pages). If you see only README at username.github.io/repoName, be sure to change your GitHub Page's source to gh-pages branch. See [how to](https://docs.github.com/en/pages/getting-started-with-github-pages/configuring-a-publishing-source-for-your-github-pages-site). +
**2. Other:** You can also host your website to Netlify, Vercel, Heroku, or other popular services. Please refer to this [doc](https://create-react-app.dev/docs/deployment) for a detailed deployment guide. From c4241c65b9c461813410335dce90981770996d86 Mon Sep 17 00:00:00 2001 From: "MD. Ariful Alam" Date: Sat, 11 Sep 2021 14:05:56 +0600 Subject: [PATCH 2/2] Remove reponame --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 186f9e5..15e87df 100644 --- a/README.md +++ b/README.md @@ -401,7 +401,7 @@ Once you are done with your setup and have completed all steps above, you need t - Any time you commit a change to main branch the website will automatically update. -Manual deployment is also available by running npm run deploy. For more info, visit [here](https://create-react-app.dev/docs/deployment/#github-pages). If you see only README at username.github.io/repoName, be sure to change your GitHub Page's source to gh-pages branch. See [how to](https://docs.github.com/en/pages/getting-started-with-github-pages/configuring-a-publishing-source-for-your-github-pages-site). +Manual deployment is also available by running npm run deploy. For more info, visit [here](https://create-react-app.dev/docs/deployment/#github-pages). If you see only README at username.github.io, be sure to change your GitHub Page's source to gh-pages branch. See [how to](https://docs.github.com/en/pages/getting-started-with-github-pages/configuring-a-publishing-source-for-your-github-pages-site).