Browse Source

Change require of Autoload

Change to use realpath so it can be executed from any path in system.
pull/26/head
Gildonei Mendes Anacleto Junior 6 years ago committed by GitHub
parent
commit
4359c881ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      ws/bin/server.php

4
ws/bin/server.php

@ -7,7 +7,7 @@ @@ -7,7 +7,7 @@
* @date 23-Dec-2016
*/
require '../vendor/autoload.php';
require(realpath(dirname(__FILE__) . '/../') .'/vendor/autoload.php');
use Amir\Comm;
@ -22,4 +22,4 @@ $app = new Ratchet\App('localhost', 8080, '0.0.0.0');//App(hostname, port, 'whoC @@ -22,4 +22,4 @@ $app = new Ratchet\App('localhost', 8080, '0.0.0.0');//App(hostname, port, 'whoC
$app->route('/comm', new Comm, $allowed_origins);
//run websocket
$app->run();
$app->run();

Loading…
Cancel
Save