2

我在 heroku 上创建了一个 PHP 应用程序,并安装了 sendgrid-php 子模块。但是,当我尝试推动它时,会发生这种情况:

$ git push heroku
Counting objects: 5, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 289 bytes, done.
Total 3 (delta 2), reused 0 (delta 0)

-----> Git submodules detected, installing
       Submodule 'sendgrid-php' (https://github.com/sendgrid/sendgrid-php) registered for path 'sendgrid-php'
       warning: templates not found /app/vendor/share/git-core/templates
       Initialized empty Git repository in /tmp/build_wfcgkfb0p50x/sendgrid-php/.git/
       fatal: reference is not a tree: 3f145137608a98b09eb01d447ff9d31d161ef2a2
       Unable to checkout '3f145137608a98b09eb01d447ff9d31d161ef2a2' in submodule path 'sendgrid-php'
 !     Heroku push rejected, Submodule install failed with exit code 1

To git@heroku.com:gausschain.git
 ! [remote rejected] master -> master (pre-receive hook declined) 

我还为 Heroku 配置了 SendGrid 插件。关于如何解决这个问题的任何想法?

4

2 回答 2

3

That means in actual submodule

SHA1 - 3f145137608a98b09eb01d447ff9d31d161ef2a2

has not been pushed yet. but in .gitmodules file this SHA is recorded on that specific branch

于 2013-05-11T08:26:01.237 回答
1

在我看来,你实际上做错了什么。安装 SendGrid PHP 库的推荐方法是使用 composer。您应该查看 README 以了解有关执行此操作的详细信息。

有一个支持作曲家的 PHP Heroku Buildpack。这是一个帮助您入门的教程:

http://cloud.dzone.com/articles/using-composer-manage

于 2013-05-11T20:45:12.840 回答