fix: load native PHP extensions for WordPress
This commit is contained in:
@@ -118,6 +118,10 @@ export async function runModuleLifecycleHook(
|
||||
urls: urls ? Object.freeze(urls) : undefined,
|
||||
native: nativeDefinition
|
||||
? Object.freeze({
|
||||
phpPrefixArgs:
|
||||
process.platform === 'win32'
|
||||
? ['-c', join(directory!, '.aurora', 'native', 'config', 'php.ini')]
|
||||
: [],
|
||||
php:
|
||||
process.platform === 'win32'
|
||||
? join(runtimeRoot(), 'bin', 'php', 'php.exe')
|
||||
@@ -128,7 +132,13 @@ export async function runModuleLifecycleHook(
|
||||
: join(runtimeRoot(), 'bin', 'wp'),
|
||||
wpPrefixArgs:
|
||||
process.platform === 'win32'
|
||||
? ['-d', 'memory_limit=512M', join(runtimeRoot(), 'tools', 'wp-cli.phar')]
|
||||
? [
|
||||
'-c',
|
||||
join(directory!, '.aurora', 'native', 'config', 'php.ini'),
|
||||
'-d',
|
||||
'memory_limit=512M',
|
||||
join(runtimeRoot(), 'tools', 'wp-cli.phar')
|
||||
]
|
||||
: [],
|
||||
databaseHost: '127.0.0.1',
|
||||
databasePort: nativeDefinition.ports.database,
|
||||
|
||||
@@ -145,6 +145,10 @@ it.runIf(Boolean(process.env.AURORA_NATIVE_WORDPRESS_SMOKE_ROOT))(
|
||||
https: `http://127.0.0.1:${definition.ports.http}`
|
||||
},
|
||||
native: {
|
||||
phpPrefixArgs:
|
||||
process.platform === 'win32'
|
||||
? ['-c', join(root, '.aurora', 'native', 'config', 'php.ini')]
|
||||
: [],
|
||||
php: runtimeCommand(runtime, 'php'),
|
||||
wp:
|
||||
process.platform === 'win32'
|
||||
@@ -152,7 +156,13 @@ it.runIf(Boolean(process.env.AURORA_NATIVE_WORDPRESS_SMOKE_ROOT))(
|
||||
: join(runtime, 'bin', 'wp'),
|
||||
wpPrefixArgs:
|
||||
process.platform === 'win32'
|
||||
? ['-d', 'memory_limit=512M', join(runtime, 'tools', 'wp-cli.phar')]
|
||||
? [
|
||||
'-c',
|
||||
join(root, '.aurora', 'native', 'config', 'php.ini'),
|
||||
'-d',
|
||||
'memory_limit=512M',
|
||||
join(runtime, 'tools', 'wp-cli.phar')
|
||||
]
|
||||
: [],
|
||||
databasePort: definition.ports.database,
|
||||
start: () => startNativeProject(definition)
|
||||
|
||||
Reference in New Issue
Block a user