try fix: empty array to json, heroku error.
parent
399fb38fd4
commit
894121d0c6
|
@ -255,9 +255,8 @@ function getHerokuConfig($function_name, $apikey)
|
|||
|
||||
function setHerokuConfig($env, $function_name, $apikey)
|
||||
{
|
||||
//sortConfig($env);
|
||||
$data = json_encode($env);
|
||||
return HerokuAPI('PATCH', 'https://api.heroku.com/apps/' . $function_name . '/config-vars', $data, $apikey);
|
||||
if (substr($data, 0, 1)=='{') return HerokuAPI('PATCH', 'https://api.heroku.com/apps/' . $function_name . '/config-vars', $data, $apikey);
|
||||
}
|
||||
|
||||
function updateHerokuapp($function_name, $apikey, $source)
|
||||
|
|
Loading…
Reference in New Issue