简体   繁体   English

在 heroku 中部署 static 网站时出错

[英]Error while deploying a static website in heroku

I can not deploy a simple website which have just HTML and CSS code in heroku.我无法部署一个在 heroku 中只有 HTML 和 CSS 代码的简单网站。 Also, I have another website where I have used HTML, CSS, Javscript and Bootstrap.另外,我还有另一个网站,我使用过 HTML、CSS、Javscript 和 Bootstrap。

The error message is: !错误信息是:! [remote rejected] master -> master (pre-receive hook declined) [remote denied] master -> master (pre-receive hook denied)

You may have the branch restrictions in the master branch of you git repository.您可能在 git 存储库的主分支中存在分支限制。 You need to check the repository settings of your git and then check branch permissions.您需要检查 git 的存储库设置,然后检查分支权限。 If there is no one who have write access in your repository, then add the user and try again deploying the website.如果没有人在您的存储库中具有写入权限,请添加用户并再次尝试部署网站。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM