Heroku - 如何在 heroku php 应用程序上启用 gd? [英] Heroku - how to enable gd on heroku php application?
问题描述
Heroku 说:
以下内置扩展已构建为共享"并可通过 composer.json(括号中给出的内部标识符名称)启用:
The following built-in extensions have been built "shared" and can be enabled through composer.json (internal identifier names given in parentheses):
但它没有给出示例,我尝试使用以下 composer.json:<代码>{要求": {"gd": "*"}}
But it doesn't give an example, I tried with the following composer.json:
{
"require": {
"gd": "*"
}
}
但是当我 git push heroku master
时,我得到:
But when I git push heroku master
, I get:
我的 composer.json:<代码>{要求": {"gd": "*"}}
My composer.json:
{ "require": { "gd": "*" } }
但是当我 git push heroku master
时,我得到:
But when I git push heroku master
, I get:
-----> Installing dependencies...
Composer version 1.0.0-alpha9-19-g10401d5 2014-12-09 11:32:02
Loading composer repositories with package information
Installing dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- The requested package gd could not be found in any version, there may be a typo in the package name.
Potential causes:
- A typo in the package name
- The package is not available in a stable-enough version according to your minimum- stability setting
see <https://groups.google.com/d/topic/composer-dev/_g3ASeIFlrc/discussion> for more details.
Read <http://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.
! Push rejected, failed to compile PHP app
如何在heroku上启用gd???
How can I enable gd on heroku???
推荐答案
试试看:
{
"require": {
"ext-gd": "*"
}
}
这篇关于Heroku - 如何在 heroku php 应用程序上启用 gd?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!