Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/heroku/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Heroku发布的新API没有';我没有提交散列_Api_Heroku - Fatal编程技术网

Heroku发布的新API没有';我没有提交散列

Heroku发布的新API没有';我没有提交散列,api,heroku,Api,Heroku,问题是关于新的heroku API结构: “接受”:“application/vnd.heroku+json;version=3” 如果我要求提供发布数据,我会得到: { "app":{"id":"b3d70761-ee7f-4039-91ac-402d2f9d12b6","name":"some-name"}, "created_at":"2015-03-22T07:33:18Z", "description":"Set COMMIT_HASH config vars", "id":"610f

问题是关于新的heroku API结构:

“接受”:“application/vnd.heroku+json;version=3”

如果我要求提供发布数据,我会得到:

{
"app":{"id":"b3d70761-ee7f-4039-91ac-402d2f9d12b6","name":"some-name"},
"created_at":"2015-03-22T07:33:18Z",
"description":"Set COMMIT_HASH config vars",
"id":"610f896a-3f34-44af-b39a-43070f02891f",
"slug":{"id":"2e8e024d-4ffa-44ff-8da9-5accd3874a5e"},"updated_at":"2015-03-22T07:33:18Z",
"user":{"email":"tmp@mail.com","id":"7d46e391-63ca-4b19-b4e4-96fec8487f77"},
"version":507
}
这里唯一的问题是没有 git提交哈希,它确实存在于旧 结构。看起来是这样的:

"addons": [
    "newrelic:stark",
    "rediscloud:100",
    "redistogo:nano",
    "deployhooks:http"
],
"commit": "9a627af", <<===
"created_at": "2015/03/18 11:52:58 -0700",
"descr": "Deploy 9a627af",
"env": {
},
"name": "v461",
"pstable": {
    "web": "java -Dkeyvalue.datasource=redis $JAVA_OPTS -jar build/libs/some.jar --server.port=$PORT"
},
"user": "tmp@tmp.com"
“插件”:[
“纽利克:斯塔克”,
“云:100”,
“redistogo:nano”,
“部署钩子:http”
],

“提交”:“9a627af”,我相信API现在会为发布返回一个Slug,您可以查找该Slug进行提交


我相信您不是有意的,但您刚刚发布了连接到internet上所有数据库的凭据。。。我郑重建议你立即去更改所有用户名和密码。这是一个测试网络,但谢谢