Skip to content

Commit ae9167c

Browse files
authored
Update drupal-cms.js
Set the composer path inside the APPDIR environment variable path. Fixes #63 (for linux)
1 parent df56039 commit ae9167c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

drupal-cms.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,10 @@ module.exports = async ( dir, { php, composer } ) => {
7878
`
7979
$settings['hash_salt'] = '${ randomBytes( 32 ).toString( 'hex' ) }';
8080
$settings['config_sync_directory'] = '${ path.join( dir, 'config' ) }';
81-
$config['package_manager.settings']['executables']['composer'] = '${composer}';`,
81+
$config['package_manager.settings']['executables']['composer'] = '${composer}';
82+
if (getenv('APPDIR')) {
83+
$config['package_manager.settings']['executables']['composer'] = getenv('APPDIR') . '/resources/app/bin/composer/bin/composer';
84+
}`,
8285
);
8386
// Make sure we load the local settings if using the built-in web server.
8487
await appendFile(

0 commit comments

Comments
 (0)