1
0
Fork 0
mirror of synced 2024-06-02 19:04:49 +12:00

fix(realtime): add port env

This commit is contained in:
Torsten Dittmann 2021-06-16 11:09:12 +02:00
parent 620980b316
commit 0acbb6097c

View file

@ -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);