django - Divio App 麻烦创建项目目录和克隆存储库

标签 django docker divio

请帮助我在尝试使其正常工作时遇到问题。
当我按“设置项目”时
它给了我这个

*

Creating workspace
cloning project repository
Cloning into '/c/Users/Ubisoft/Documents/iloveit'...
Bad owner or permissions on /home/divio/.ssh/config
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
There was an error trying to run a command. This is most likely
not an issue with divio-cli, but the called program itself.
Try checking the output of the command above.
The command was:
  git clone git@git.divio.com:iloveit.git /c/Users/Ubisoft/Documents/iloveit

*

在windows power shell中它给了我这个
Creating workspace

cloning project repository
Cloning into '/c/Users/Ubisoft/Documents/iloveit'...
Bad owner or permissions on /home/divio/.ssh/config
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
------------------------------------------------------------------------------------------------------------------------
There was an error trying to run a command. This is most likely
not an issue with divio-cli, but the called program itself.
Try checking the output of the command above.
The command was:
  git clone git@git.divio.com:iloveit.git /c/Users/Ubisoft/Documents/iloveit

divio@app-1.0.0 /c/Users/Ubisoft/Documents
$

我也从虚拟 MacOS 尝试过这个并收到此消息:

/image/QccvY.png

我也尝试过创建 SSH key ,但没有成功。

有人可以逐步解释如何使这个出色的应用程序工作吗?

最佳答案

在您展示的 Windows 示例中,我看到:

Bad owner or permissions on /home/divio/.ssh/config

我不确定这是怎么发生的,但这就是阻止您的本地环境向 Divio 控制面板提供预期 key 的原因。

在 Macintosh 示例中,环境没有控制面板知道的键。

您需要将 key (可能来自 ~/.ssh/rsa_id.pub)添加到 https://control.divio.com/account/ssh-keys/ .如果您在 Macintosh 环境中还没有 key ,则需要设置一个。

关于django - Divio App 麻烦创建项目目录和克隆存储库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59367228/

相关文章:

python - Dockerized Python Project-管理依赖项的最佳方法:Dockerfile或requirements.txt

python - 奥尔德林 Hello World 问题

css - 如何替换 Divio Cloud 元素中的样式表?

django - 多项选择字段在 Django 中不显示查询集

python - Django 模型在模板中不可迭代

macos - docker 未在OSX上打开端口

docker - 与 Ubuntu 相比,为什么 SLES 12 上的 docker 容器占用 2 倍内存?

python - Aldryn - 如何添加自己的 Django 应用程序及其依赖项

python - 仅当之前未插入分隔符时才插入分隔符

python - Django 默认表