From 39aa8530424310663c888f9e02224158961532e3 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Tue, 30 Oct 2018 18:41:29 +0100 Subject: PHP is crap --- infrastructure/Console/Commands/StartServer.sh | 9 ------ .../Console/Commands/StartServerCommand.php | 30 ------------------ .../Console/Commands/WebSocketServerCommand.php | 37 ---------------------- 3 files changed, 76 deletions(-) delete mode 100644 infrastructure/Console/Commands/StartServer.sh delete mode 100644 infrastructure/Console/Commands/StartServerCommand.php delete mode 100644 infrastructure/Console/Commands/WebSocketServerCommand.php (limited to 'infrastructure/Console/Commands') diff --git a/infrastructure/Console/Commands/StartServer.sh b/infrastructure/Console/Commands/StartServer.sh deleted file mode 100644 index f9feaa8..0000000 --- a/infrastructure/Console/Commands/StartServer.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash -e -redis-server & -PIDS[0]=$! -sudo php artisan serve --host 0.0.0.0 --port 80 & -PIDS[1]=$! - -trap "sudo kill ${PIDS[*]}" SIGINT - -wait diff --git a/infrastructure/Console/Commands/StartServerCommand.php b/infrastructure/Console/Commands/StartServerCommand.php deleted file mode 100644 index 03ec6f9..0000000 --- a/infrastructure/Console/Commands/StartServerCommand.php +++ /dev/null @@ -1,30 +0,0 @@ -line('Starting server...'); - if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') { - exec("wsl bash infrastructure/Console/Commands/StartServer.sh"); - } else { - exec("bash infrastructure/Console/Commands/StartServer.sh"); - } - } -} \ No newline at end of file diff --git a/infrastructure/Console/Commands/WebSocketServerCommand.php b/infrastructure/Console/Commands/WebSocketServerCommand.php deleted file mode 100644 index 764e16a..0000000 --- a/infrastructure/Console/Commands/WebSocketServerCommand.php +++ /dev/null @@ -1,37 +0,0 @@ -line('Starting websocket...'); - $server->run(); - } -} \ No newline at end of file -- cgit v1.2.3