mirror of
https://github.com/appwrite/appwrite
synced 2026-05-23 17:08:45 +00:00
set credentials
This commit is contained in:
parent
ddb72c7546
commit
6e6081f693
1 changed files with 7 additions and 2 deletions
|
|
@ -332,8 +332,13 @@ class Migrations extends Action
|
|||
|
||||
$transfer = $source = $destination = null;
|
||||
|
||||
//$protocol = System::getEnv('_APP_OPTIONS_FORCE_HTTPS') === 'disabled' ? 'http' : 'https';
|
||||
// $endpoint = $protocol . '://' . $platform['apiHostname'] . '/v1';
|
||||
|
||||
/**
|
||||
* Old logic
|
||||
* $protocol = System::getEnv('_APP_OPTIONS_FORCE_HTTPS') === 'disabled' ? 'http' : 'https';
|
||||
* $endpoint = $protocol . '://' . $platform['apiHostname'] . '/v1';
|
||||
*/
|
||||
|
||||
$endpoint = System::getEnv('_APP_MIGRATION_ENDPOINT');
|
||||
|
||||
try {
|
||||
|
|
|
|||
Loading…
Reference in a new issue