mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
fix: architecture agnostic runtimes in cli
This commit is contained in:
+7
-1
@@ -1,12 +1,12 @@
|
||||
<?php
|
||||
|
||||
require_once __DIR__ . '/init.php';
|
||||
require_once __DIR__ . '/controllers/general.php';
|
||||
|
||||
use Appwrite\Event\Certificate;
|
||||
use Appwrite\Event\Delete;
|
||||
use Appwrite\Event\Func;
|
||||
use Appwrite\Platform\Appwrite;
|
||||
use Appwrite\Runtimes\Runtimes;
|
||||
use Utopia\Cache\Adapter\Sharding;
|
||||
use Utopia\Cache\Cache;
|
||||
use Utopia\CLI\CLI;
|
||||
@@ -23,6 +23,12 @@ use Utopia\Queue\Connection;
|
||||
use Utopia\Registry\Registry;
|
||||
use Utopia\System\System;
|
||||
|
||||
// overwriting runtimes to be architectur agnostic for CLI
|
||||
Config::setParam('runtimes', (new Runtimes('v4'))->getAll(supported: false));
|
||||
|
||||
// require controllers after overwriting runtimes
|
||||
require_once __DIR__ . '/controllers/general.php';
|
||||
|
||||
Authorization::disable();
|
||||
|
||||
CLI::setResource('register', fn () => $register);
|
||||
|
||||
@@ -9451,6 +9451,9 @@
|
||||
"python-3.11",
|
||||
"python-3.12",
|
||||
"python-ml-3.11",
|
||||
"deno-1.21",
|
||||
"deno-1.24",
|
||||
"deno-1.35",
|
||||
"deno-1.40",
|
||||
"dart-2.15",
|
||||
"dart-2.16",
|
||||
@@ -10096,6 +10099,9 @@
|
||||
"python-3.11",
|
||||
"python-3.12",
|
||||
"python-ml-3.11",
|
||||
"deno-1.21",
|
||||
"deno-1.24",
|
||||
"deno-1.35",
|
||||
"deno-1.40",
|
||||
"dart-2.15",
|
||||
"dart-2.16",
|
||||
|
||||
@@ -8559,6 +8559,9 @@
|
||||
"python-3.11",
|
||||
"python-3.12",
|
||||
"python-ml-3.11",
|
||||
"deno-1.21",
|
||||
"deno-1.24",
|
||||
"deno-1.35",
|
||||
"deno-1.40",
|
||||
"dart-2.15",
|
||||
"dart-2.16",
|
||||
@@ -8970,6 +8973,9 @@
|
||||
"python-3.11",
|
||||
"python-3.12",
|
||||
"python-ml-3.11",
|
||||
"deno-1.21",
|
||||
"deno-1.24",
|
||||
"deno-1.35",
|
||||
"deno-1.40",
|
||||
"dart-2.15",
|
||||
"dart-2.16",
|
||||
|
||||
@@ -9451,6 +9451,9 @@
|
||||
"python-3.11",
|
||||
"python-3.12",
|
||||
"python-ml-3.11",
|
||||
"deno-1.21",
|
||||
"deno-1.24",
|
||||
"deno-1.35",
|
||||
"deno-1.40",
|
||||
"dart-2.15",
|
||||
"dart-2.16",
|
||||
@@ -10096,6 +10099,9 @@
|
||||
"python-3.11",
|
||||
"python-3.12",
|
||||
"python-ml-3.11",
|
||||
"deno-1.21",
|
||||
"deno-1.24",
|
||||
"deno-1.35",
|
||||
"deno-1.40",
|
||||
"dart-2.15",
|
||||
"dart-2.16",
|
||||
|
||||
@@ -8559,6 +8559,9 @@
|
||||
"python-3.11",
|
||||
"python-3.12",
|
||||
"python-ml-3.11",
|
||||
"deno-1.21",
|
||||
"deno-1.24",
|
||||
"deno-1.35",
|
||||
"deno-1.40",
|
||||
"dart-2.15",
|
||||
"dart-2.16",
|
||||
@@ -8970,6 +8973,9 @@
|
||||
"python-3.11",
|
||||
"python-3.12",
|
||||
"python-ml-3.11",
|
||||
"deno-1.21",
|
||||
"deno-1.24",
|
||||
"deno-1.35",
|
||||
"deno-1.40",
|
||||
"dart-2.15",
|
||||
"dart-2.16",
|
||||
|
||||
@@ -9573,6 +9573,9 @@
|
||||
"python-3.11",
|
||||
"python-3.12",
|
||||
"python-ml-3.11",
|
||||
"deno-1.21",
|
||||
"deno-1.24",
|
||||
"deno-1.35",
|
||||
"deno-1.40",
|
||||
"dart-2.15",
|
||||
"dart-2.16",
|
||||
@@ -10237,6 +10240,9 @@
|
||||
"python-3.11",
|
||||
"python-3.12",
|
||||
"python-ml-3.11",
|
||||
"deno-1.21",
|
||||
"deno-1.24",
|
||||
"deno-1.35",
|
||||
"deno-1.40",
|
||||
"dart-2.15",
|
||||
"dart-2.16",
|
||||
|
||||
@@ -8683,6 +8683,9 @@
|
||||
"python-3.11",
|
||||
"python-3.12",
|
||||
"python-ml-3.11",
|
||||
"deno-1.21",
|
||||
"deno-1.24",
|
||||
"deno-1.35",
|
||||
"deno-1.40",
|
||||
"dart-2.15",
|
||||
"dart-2.16",
|
||||
@@ -9117,6 +9120,9 @@
|
||||
"python-3.11",
|
||||
"python-3.12",
|
||||
"python-ml-3.11",
|
||||
"deno-1.21",
|
||||
"deno-1.24",
|
||||
"deno-1.35",
|
||||
"deno-1.40",
|
||||
"dart-2.15",
|
||||
"dart-2.16",
|
||||
|
||||
@@ -9573,6 +9573,9 @@
|
||||
"python-3.11",
|
||||
"python-3.12",
|
||||
"python-ml-3.11",
|
||||
"deno-1.21",
|
||||
"deno-1.24",
|
||||
"deno-1.35",
|
||||
"deno-1.40",
|
||||
"dart-2.15",
|
||||
"dart-2.16",
|
||||
@@ -10237,6 +10240,9 @@
|
||||
"python-3.11",
|
||||
"python-3.12",
|
||||
"python-ml-3.11",
|
||||
"deno-1.21",
|
||||
"deno-1.24",
|
||||
"deno-1.35",
|
||||
"deno-1.40",
|
||||
"dart-2.15",
|
||||
"dart-2.16",
|
||||
|
||||
@@ -8683,6 +8683,9 @@
|
||||
"python-3.11",
|
||||
"python-3.12",
|
||||
"python-ml-3.11",
|
||||
"deno-1.21",
|
||||
"deno-1.24",
|
||||
"deno-1.35",
|
||||
"deno-1.40",
|
||||
"dart-2.15",
|
||||
"dart-2.16",
|
||||
@@ -9117,6 +9120,9 @@
|
||||
"python-3.11",
|
||||
"python-3.12",
|
||||
"python-ml-3.11",
|
||||
"deno-1.21",
|
||||
"deno-1.24",
|
||||
"deno-1.35",
|
||||
"deno-1.40",
|
||||
"dart-2.15",
|
||||
"dart-2.16",
|
||||
|
||||
Reference in New Issue
Block a user