mirror of
https://github.com/appwrite/appwrite
synced 2026-05-21 16:08:22 +00:00
Use apiHostname
This commit is contained in:
parent
d19eec9849
commit
40dede6503
1 changed files with 3 additions and 2 deletions
|
|
@ -338,6 +338,9 @@ class Migrations extends Action
|
|||
throw new \Exception('_APP_MIGRATION_ENDPOINT env is empty');
|
||||
}
|
||||
|
||||
$protocol = System::getEnv('_APP_OPTIONS_FORCE_HTTPS') === 'disabled' ? 'http' : 'https';
|
||||
$endpoint = $protocol . '://' . $platform['apiHostname'] . '/v1';
|
||||
|
||||
try {
|
||||
$credentials = $migration->getAttribute('credentials', []);
|
||||
|
||||
|
|
@ -360,8 +363,6 @@ class Migrations extends Action
|
|||
|
||||
$migration->setAttribute('credentials', $credentials);
|
||||
|
||||
var_dump($credentials);
|
||||
|
||||
$migration->setAttribute('stage', 'processing');
|
||||
$migration->setAttribute('status', 'processing');
|
||||
$this->updateMigrationDocument($migration, $project, $queueForRealtime);
|
||||
|
|
|
|||
Loading…
Reference in a new issue