Last active
June 5, 2021 23:54
-
-
Save devreena03/e0ae466d8d3ed10a10fbcbd08582dbe6 to your computer and use it in GitHub Desktop.
Git command for static app deployment in github.io
This file contains hidden or 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
1. merge error/commit merge error | |
1. i -> enter comment -> esc -> :wq -> enter | |
1. Deploy a static site in github | |
repo -> setting -> GitHub Pages -> select the branch -> code will deploy at <yourusername>.github.io/<yourrepo> | |
2. Deploy angular static site | |
go to project folder | |
-> npm install -g angular-cli-ghpages | |
-> ng build --prod --base-href https://devreena03.github.io/angular5app | |
-> ngh -no-silent | |
3. Deploy react static pages | |
go to project folder | |
-> npm install --save gh-pages | |
-> update package.json -> | |
"homepage": "https://devreena03.github.io/react-photowall", | |
"scripts": { | |
"predeploy": "npm run build", | |
"deploy": "gh-pages -d build", | |
}, | |
-> npm run deploy |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment