|
9 | 9 | // paths |
10 | 10 | $baseDir = realpath(__DIR__ . "/../"); |
11 | 11 | $pwDir = realpath($baseDir . "/vendor/processwire/processwire/"); |
12 | | -$siteDir = realpath($pwDir . "/site-blank/"); |
| 12 | +$siteDir = realpath($baseDir . "/vendor/processwire/site-default/"); |
13 | 13 | $moduleDir = $siteDir . "/modules/ProcessGraphQL"; |
14 | 14 | $testFilesDir = realpath($baseDir . "/test/files"); |
15 | 15 | $siteFilesDir = $siteDir . "/assets/files"; |
|
23 | 23 | unlink($installFile); |
24 | 24 | } |
25 | 25 |
|
26 | | -// overwrite site-blank's config.php with our own custom one |
| 26 | +// overwrite site-defaults's config.php with our own custom one |
27 | 27 | copy(__DIR__ . "/site/config.php", $siteDir . "/config.php"); |
28 | 28 |
|
29 | 29 | // symlink site/classes directory |
|
62 | 62 | \symlink($mapMarkerGraphQLDir, $mapMarkerGraphQLDestDir); |
63 | 63 | } |
64 | 64 |
|
| 65 | +// symlink the site-default to vendor/processwire/processwire/site |
| 66 | +// so it is next to wire directory. |
| 67 | +$siteDirDest = $pwDir . "/site"; |
| 68 | +if (!file_exists($siteDirDest)) { |
| 69 | + \symlink($siteDir, $siteDirDest); |
| 70 | +} |
| 71 | + |
65 | 72 | // symlink skyscrapers pages files to site's asset files |
66 | 73 | if (!file_exists($siteFilesDir)) { |
67 | 74 | \symlink($testFilesDir, $siteFilesDir); |
68 | 75 | } |
69 | 76 |
|
70 | 77 | use ProcessWire\ProcessWire; |
71 | 78 |
|
72 | | -$config = ProcessWire::buildConfig($pwDir, null, [ |
73 | | - "siteDir" => "site-blank" |
74 | | -]); |
| 79 | +$config = ProcessWire::buildConfig($pwDir); |
75 | 80 |
|
76 | 81 | require_once realpath(__DIR__ . "/databaseReset.php"); |
77 | 82 |
|
|
0 commit comments