mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
check _APP_MIGRATION_HOST
This commit is contained in:
@@ -336,8 +336,12 @@ class Migrations extends Action
|
||||
//$protocol = System::getEnv('_APP_OPTIONS_FORCE_HTTPS') === 'disabled' ? 'http' : 'https';
|
||||
//$endpoint = $protocol . '://' . $platform['apiHostname'] . '/v1';
|
||||
|
||||
$endpoint = 'http://localhost/v1';
|
||||
$endpoint = 'http://appwrite/v1';
|
||||
$host = System::getEnv('_APP_MIGRATION_HOST');
|
||||
if (empty($host)) {
|
||||
throw new \Exception('_APP_MIGRATION_HOST is not set');
|
||||
}
|
||||
|
||||
$endpoint = 'http://'.$host.'/v1';
|
||||
|
||||
try {
|
||||
$credentials = $migration->getAttribute('credentials', []);
|
||||
|
||||
Reference in New Issue
Block a user