open-spec tiny fix
This commit is contained in:
parent
adfa0e217c
commit
4e2adfde5b
|
@ -3,7 +3,7 @@
|
||||||
// Init
|
// Init
|
||||||
require_once __DIR__.'/init.php';
|
require_once __DIR__.'/init.php';
|
||||||
|
|
||||||
global $env, $utopia, $request, $response, $register, $consoleDB, $project, $domain, $version, $service, $protocol;
|
global $env, $utopia, $request, $response, $register, $consoleDB, $project, $domain, $version, $service, $protocol, $domainVerification;
|
||||||
|
|
||||||
use Utopia\App;
|
use Utopia\App;
|
||||||
use Utopia\Request;
|
use Utopia\Request;
|
||||||
|
|
|
@ -50,7 +50,8 @@ $cli
|
||||||
|
|
||||||
Console::info('Fetching API Spec for '.$language['name'].' for '.$platform['name']);
|
Console::info('Fetching API Spec for '.$language['name'].' for '.$platform['name']);
|
||||||
|
|
||||||
$spec = getSSLPage('http://localhost/v1/open-api-2.json?extensions=1&platform='.$language['family']);
|
//$spec = getSSLPage('http://localhost/v1/open-api-2.json?extensions=1&platform='.$language['family']);
|
||||||
|
$spec = getSSLPage('http://stage.appwrite.io/v1/open-api-2.json?extensions=1&platform='.$language['family']);
|
||||||
|
|
||||||
$result = realpath(__DIR__.'/..').'/sdks/'.$key.'-'.$language['key'];
|
$result = realpath(__DIR__.'/..').'/sdks/'.$key.'-'.$language['key'];
|
||||||
$target = realpath(__DIR__.'/..').'/sdks/git/'.$language['key'].'/';
|
$target = realpath(__DIR__.'/..').'/sdks/git/'.$language['key'].'/';
|
||||||
|
@ -156,7 +157,7 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
$gitUrl = 'git@github.com:aw-tests/'.$language['gitRepoName'].'.git';
|
#$gitUrl = 'git@github.com:aw-tests/'.$language['gitRepoName'].'.git';
|
||||||
|
|
||||||
exec('rm -rf '.$target.' && \
|
exec('rm -rf '.$target.' && \
|
||||||
mkdir -p '.$target.' && \
|
mkdir -p '.$target.' && \
|
||||||
|
|
Loading…
Reference in a new issue