1
0
Fork 0
mirror of synced 2024-06-29 19:50:26 +12:00
This commit is contained in:
Eldad Fux 2021-03-10 09:43:10 +02:00
parent b26b831931
commit b75d33efc1
2 changed files with 2 additions and 6 deletions

View file

@ -42,8 +42,6 @@ use Swoole\Database\PDOPool;
use Swoole\Database\RedisConfig; use Swoole\Database\RedisConfig;
use Swoole\Database\RedisPool; use Swoole\Database\RedisPool;
Runtime::enableCoroutine(SWOOLE_HOOK_ALL);
const APP_NAME = 'Appwrite'; const APP_NAME = 'Appwrite';
const APP_DOMAIN = 'appwrite.io'; const APP_DOMAIN = 'appwrite.io';
const APP_EMAIL_TEAM = 'team@localhost.test'; // Default email address const APP_EMAIL_TEAM = 'team@localhost.test'; // Default email address

View file

@ -1,16 +1,15 @@
<?php <?php
require_once __DIR__ . '/init.php'; require_once __DIR__ . '/init.php';
require_once __DIR__ . '/../vendor/autoload.php';
use Appwrite\Network\Validator\Origin; use Appwrite\Network\Validator\Origin;
use Appwrite\Realtime\Realtime; use Appwrite\Realtime\Realtime;
use Appwrite\Utopia\Response; use Appwrite\Utopia\Response;
use Swoole\WebSocket\Server; use Swoole\Process;
use Swoole\Http\Request; use Swoole\Http\Request;
use Swoole\Http\Response as SwooleResponse; use Swoole\Http\Response as SwooleResponse;
use Swoole\Process;
use Swoole\WebSocket\Frame; use Swoole\WebSocket\Frame;
use Swoole\WebSocket\Server;
use Utopia\App; use Utopia\App;
use Utopia\CLI\Console; use Utopia\CLI\Console;
use Utopia\Swoole\Request as SwooleRequest; use Utopia\Swoole\Request as SwooleRequest;
@ -26,7 +25,6 @@ use Utopia\Abuse\Adapters\TimeLimit;
* - Websocket support: https://www.swoole.co.uk/docs/modules/swoole-websocket-server * - Websocket support: https://www.swoole.co.uk/docs/modules/swoole-websocket-server
*/ */
ini_set('default_socket_timeout', -1);
Swoole\Runtime::enableCoroutine(SWOOLE_HOOK_ALL); Swoole\Runtime::enableCoroutine(SWOOLE_HOOK_ALL);
$server = new Server('0.0.0.0', 80); $server = new Server('0.0.0.0', 80);