1
0
Fork 0
mirror of synced 2024-06-29 03:30:34 +12:00

open-spec tiny fix

This commit is contained in:
Eldad Fux 2020-03-19 17:03:30 +02:00
parent adfa0e217c
commit 4e2adfde5b
2 changed files with 4 additions and 3 deletions

View file

@ -3,7 +3,7 @@
// Init
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\Request;

View file

@ -50,7 +50,8 @@ $cli
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'];
$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;
}
$gitUrl = 'git@github.com:aw-tests/'.$language['gitRepoName'].'.git';
#$gitUrl = 'git@github.com:aw-tests/'.$language['gitRepoName'].'.git';
exec('rm -rf '.$target.' && \
mkdir -p '.$target.' && \