繁体   English   中英

Polymer 2.0上传到GitHub-Pages

[英]Polymer 2.0 upload to GitHub-Pages

我将我的Polymer组件上传到gh页时遇到问题。

我从教程尝试:

    # git clone the Polymer tools repository somewhere outside of your 
# element project
git clone git://github.com/Polymer/tools.git

# Create a temporary directory for publishing your element and cd into it
mkdir temp && cd temp

# Run the gp.sh script. This will allow you to push a demo-friendly
# version of your page and its dependencies to a GitHub pages branch
# of your repository (gh-pages). Below, we pass in a GitHub username
# and the repo name for our element
../tools/bin/gp.sh <username> <test-element>

# Finally, clean-up your temporary directory as you no longer require it
cd ..
rm -rf temp

但这不起作用。 在终端我有这个错误: 在此处输入图片说明

我有什么想念吗?

这是您的问题:

权限被拒绝(公钥)。
致命:无法从远程存储库读取。

请确保您具有正确的访问权限
并且存储库存在。

为了使脚本按预期运行,您需要将公共ssh密钥添加到github项目中。 设置->部署密钥->添加部署密钥。

或者,您可以手动执行gp.sh中涉及从github推送到github的步骤。

如果您不想拆分脚本,请尝试手动运行命令,这应该可以工作。 脚本中唯一的多行命令是以下命令:

echo "{
  \"directory\": \"components\"
}
" > .bowerrc

祝好运。

暂无
暂无

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

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