尝试部署站点 - 无法部署错误

问题描述 投票:0回答:2

我正在尝试部署我的网站,并收到此错误:

2:49:12 PM: Error checking out submodules: fatal: No url found for submodule path 'startbootstrap-grayscale' in .gitmodules
2:49:12 PM: Failing build: Failed to prepare repo
2:49:12 PM: failed during stage 'preparing repo': Error checking out submodules: fatal: No url found for submodule path 'startbootstrap-grayscale' in .gitmodules

一切都已经承诺并推到我的回购中,我认为没有任何遗漏。关于可能出错的任何线索?

编辑

[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
ignorecase = true
precomposeunicode = true

[remote "origin"]
  url = https://github.com/BlackrockDigital/startbootstrap-grayscale.git
  fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
  remote = origin
  merge = refs/heads/master

编辑2

usage: git submodule [--quiet] add [-b <branch>] [-f|--force] [--name <name>] [--reference <repository>] [--] <repository> [<path>]
   or: git submodule [--quiet] status [--cached] [--recursive] [--] [<path>...]
   or: git submodule [--quiet] init [--] [<path>...]
   or: git submodule [--quiet] deinit [-f|--force] (--all| [--] <path>...)
   or: git submodule [--quiet] update [--init] [--remote] [-N|--no-fetch] [-f|--force] [--checkout|--merge|--rebase] [--[no-]recommend-shallow] [--reference <repository>] [--recursive] [--] [<path>...]
   or: git submodule [--quiet] summary [--cached|--files] [--summary-limit <n>] [commit] [--] [<path>...]
   or: git submodule [--quiet] foreach [--recursive] <command>
   or: git submodule [--quiet] sync [--recursive] [--] [<path>...]
   or: git submodule [--quiet] absorbgitdirs [--] [<path>...]
git github deployment
2个回答
1
投票

看起来您的存储库使用子模块。当您使用子模块时,在存储库的根目录中的.gitmodules文件中应该有该条目的条目,并且该文件中的URL应该有一个条目。如果缺少文件或正确的URL条目,则在执行克隆时将无法检出子模块,因为Git不知道其他存储库的位置。

作为参考,.gitmodules文件应该如下所示:

[submodule "vim-fugitive"]
        path = vim/bundle/vim-fugitive
        url = https://github.com/tpope/vim-fugitive.git
[submodule "ctrlp"]
        path = vim/bundle/ctrlp
        url = https://github.com/kien/ctrlp.vim.git

path组件是存储库中的路径,url组件是从中下载它的位置。

有关子模块配置选项的更多详细信息,请参见git-config(1)手册页。


0
投票

你用“heroku logs --tail”得到了什么?我假设你删除了应用程序并重新部署?

© www.soinside.com 2019 - 2024. All rights reserved.