mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Use apiHostname
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user