From 322ed8170097c494268d964a9623d802622917f8 Mon Sep 17 00:00:00 2001 From: assertchris Date: Fri, 20 May 2016 10:04:52 +1200 Subject: [PATCH] Initial commit --- .gitignore | 3 +++ _config.php | 24 ++++++++++++++++++++++++ code/Task.php | 44 ++++++++++++++++++++++++++++++++++++++++++++ code/server.php | 14 ++++++++++++++ composer.json | 11 +++++++++++ readme.md | 17 +++++++++++++++++ 6 files changed, 113 insertions(+) create mode 100644 .gitignore create mode 100644 _config.php create mode 100644 code/Task.php create mode 100644 code/server.php create mode 100644 composer.json create mode 100644 readme.md diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b2b30af --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +framework +vendor +composer.lock diff --git a/_config.php b/_config.php new file mode 100644 index 0000000..4eeb925 --- /dev/null +++ b/_config.php @@ -0,0 +1,24 @@ +find(false); + + $root = SERVE_ROOT; + $host = SERVE_HOST; + $port = SERVE_PORT; + + print "Server running at http://{$host}:{$port}\n"; + + passthru("'{$bin}' -S {$host}:{$port} -t '{$root}' '{$path}/server.php'"); + } +} diff --git a/code/server.php b/code/server.php new file mode 100644 index 0000000..82b07a0 --- /dev/null +++ b/code/server.php @@ -0,0 +1,14 @@ +