Skip to content

Commit 8513b09

Browse files
authored
Merge pull request #95 from robertboloc/feature-built-in-server
Add documentation on how to run with built-in server and Composer script
2 parents 8419799 + c10755d commit 8513b09

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

README.md

+4
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ Installation
2020
2. Unzip package to favourite path accessible by webserver.
2121
3. Load webgrind in browser and start profiling
2222

23+
Alternatively, on PHP 5.4+ run the application using the PHP built-in server
24+
with the command `composer serve` or `php -S 0.0.0.0:8080 index.php` if you
25+
are not using Composer.
26+
2327
For faster preprocessing under linux, give write access to the `bin` subdirectory
2428
or execute `make` in the unzipped folder (requires GCC).
2529

composer.json

+3
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,8 @@
2121
"issues": "https://github.com/jokkedk/webgrind/issues",
2222
"wiki": "https://github.com/jokkedk/webgrind/wiki",
2323
"source": "https://github.com/jokkedk/webgrind"
24+
},
25+
"scripts": {
26+
"serve": "php -S 0.0.0.0:8080 index.php"
2427
}
2528
}

0 commit comments

Comments
 (0)