Skip to content
This repository was archived by the owner on Dec 19, 2019. It is now read-only.

Commit 2712100

Browse files
author
Oleksii Korshenko
authored
MAGETWO-87748: Fix URL passed to static.php in PHP in-development server #13361
2 parents a1270db + 2a688d0 commit 2712100

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

phpserver/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ For more informations about the installation process using the CLI, you can cons
3131

3232
### How to run Magento
3333

34-
Example usage: ```php -S 127.0.0.1:8082 -t ./pub/ ./phpserver/router.php```
34+
Example usage: ```php -S 127.0.0.1:8082 -t ./pub/ ../phpserver/router.php```
3535

3636
### What exactly the script does
3737

phpserver/router.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@
103103
} else {
104104
$debug('file does not exist');
105105
if (strpos($route, 'static/') === 0) {
106+
$route = preg_replace('#static/#', '', $route, 1);
106107
$_GET['resource'] = $route;
107108
$debug("static: $route");
108109
include($magentoPackagePubDir.'/static.php');

0 commit comments

Comments
 (0)