当我通过Docusaurus完成了Docs网站的设计时,我想将其部署到GitHub页面。通常,这并不难。我需要在docusaurus.config.js中更改一些内容,并使用“ github_user = yarn exploy”命令。但是,此存储库不在我的github个人资料中。这是我们公司的GitHub概况中的。我有允许推动的权限,但是当我尝试“ github_user = yarn deploy”命令时,我在消息。实际上,这是正常的原因,因为我已经观看了一些有关此视频的视频,但他们收到了同样的消息,但我尝试查看网站,我会遇到404错误。
我现在该怎么办?
注意:我尝试使用自己的github用户名来“ github_user = yarn部署”命令(正如我在获得推送许可之前所说的那样)。我必须使用我们的组织用户名吗?
When I completed to design of our docs website with Docusaurus I wanted to deploy it to GitHub pages. In normally this is no hard. I need to change a few things in docusaurus.config.js and use "GITHUB_USER= yarn deploy" command. However this repo isn't in the my GitHub profile. It's in the organisation GitHub profile of our company. I have permission for push but when I tried to "GITHUB_USER= yarn deploy" command I got "website live at https://ourOrganisationGithubUsername.github.io/ourProjectName/" message. Actually it's normal cause I have watched some videos about that and they got same message but I try to see the website I get 404 error.
What should I do now ?
Note: I have tried to "GITHUB_USER= yarn deploy" command with my own GitHub username (as I said before I have permission for push.). Do I have to use our organisation username ?
发布评论
评论(2)
我曾尝试与我的同事的用户名一起部署,后者是我们公司的GitHub帐户中的管理员。它运行良好,然后我可以在首次发布自己的用户名之后部署。当我给出公司用户名时,它要求我提供公司帐户的密码。我认为这不是治疗解决方案。
感谢您的关注。
I have tried deploy with my coworker's username who is an admin on our company's Github account. It works well then I could deploy after first publish with my own username. When I gave the username of our company, it asked me for the password of the company account. I think it isn't a healty solution.
Thanks for attention.
我最近遇到了同样的问题!我的存储库是私人的,所以我将存储库公开了,问题得到了解决。
I recently experienced the same issue! My repository was private, so I made the repository public, and the Issue was solved.