I tried to publish my-username-.imtqy.com repository for github pages, but mine index.htmlis inside the folder dist.
index.html
dist
I cannot use git subtree push --prefix dist origin gh-pagesit because it is intended for project pages, not for user pages / org.
git subtree push --prefix dist origin gh-pages
All I want is github to handle dist as the root directory to host the / org user page. Please, help. thank
PS: I do not want to do a redirect.
You cannot do it this way.
GitHub pages can be hosted with:
/
/docs
/ .
, . CI/CD .
, gh-, /docs , , , .gitignore
.gitignore
npm, , gh-. --save-dev devDependencies:
--save-dev
devDependencies
# install $ npm install push-dir --save-dev # usage $ push-dir --dir=dist --branch=gh-pages
GH-
# install $ npm install gh-pages --save-dev # usage $ gh-pages -d dist
, , , , package.json :
package.json
"scripts": { "deploy": "npm run build && gh-pages -d dist" }
:
Source: https://habr.com/ru/post/1670872/More articles:Display all images from storage in Firebase - jqueryJava 8 ZoneOffset - How to get the current offset of a UTC system - javaHow to create loop video in SceneKit on iOS in Swift 3? - iosios: universal links not working on iOS 10 - iosNGINX - Session Management with NGINX as an API Gateway - reverse-proxySetting the environment variable to Ansible from the output of the bash command - bashCount the number of occurrences - rHow can I sum the positions of individual elements in int []? - c #Display image of a binary PNG file stored in MongoDB - pythonError CoreAudio - AVAudioIONodeImpl.mm//65: _GetHWFormat: Required false: hwFormat - iosAll Articles