Skip to content

Commit

Permalink
Remove development dependencies for stable release
Browse files Browse the repository at this point in the history
  • Loading branch information
g105b committed Jun 19, 2019
1 parent 2e9c8d9 commit 8e75ec3
Show file tree
Hide file tree
Showing 4 changed files with 192 additions and 149 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Development HTTP server.
========================

This webserver is for use with WebEngine projects. Starting the server executes the PHP inbuilt server and uses the WebEngine `go.php` entry point as the router script.

When requiring this project directly using Composer, run the server by calling `vendor/bin/serve`. If you're using the [PHP.Gt Installer](https://www.php.gt/installer) you can start the server on its own with the `gt serve` command, or with the other background processes with the `gt run` command.
6 changes: 1 addition & 5 deletions bin/serve
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,7 @@ use Gt\Cli\Application;
use Gt\Cli\Argument\CommandArgumentList;
use Gt\Server\Command\StartCommand;

$autoloadLocations = [
__DIR__ . "/../../../autoload.php",
__DIR__ . "/../vendor/autoload.php",
];
foreach($autoloadLocations as $location) {
foreach([__DIR__ . "/../../../autoload.php",__DIR__ . "/../vendor/autoload.php"] as $location) {
if(file_exists($location)) {
require($location);
break;
Expand Down
10 changes: 1 addition & 9 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,4 @@
{
"repositories": [
{
"type": "path",
"url": "/home/g105b/Code/PhpGt/*"
}
],
"minimum-stability": "dev",

"name": "phpgt/server",
"description": "Development HTTP server.",

Expand All @@ -15,7 +7,7 @@
],

"require": {
"phpgt/cli": "dev-master"
"phpgt/cli": "*"
},
"require-dev": {
"phpunit/phpunit": "8.*"
Expand Down
Loading

0 comments on commit 8e75ec3

Please sign in to comment.