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

1

あなたが実際に何か間違ったことをしているように私には聞こえます。SendGrid PHP ライブラリをインストールするための推奨される方法は、composer を使用することです。詳細については、README を参照してください。

コンポーザーをサポートする PHP Heroku Buildpack があります。開始するためのチュートリアルは次のとおりです。

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

于 2013-05-11T20:45:12.840 に答える