fix(realtime): add port env
This commit is contained in:
parent
620980b316
commit
0acbb6097c
|
@ -1,6 +1,7 @@
|
|||
<?php
|
||||
|
||||
use Appwrite\Realtime\Server;
|
||||
use Utopia\App;
|
||||
|
||||
require_once __DIR__ . '/init.php';
|
||||
|
||||
|
@ -10,4 +11,4 @@ $config = [
|
|||
'package_max_length' => 64000 // Default maximum Package Size (64kb)
|
||||
];
|
||||
|
||||
$realtimeServer = new Server($register, config: $config);
|
||||
$realtimeServer = new Server($register, port: App::getEnv('PORT', 80), config: $config);
|
||||
|
|
Loading…
Reference in a new issue