Skip to content

Commit 947651f

Browse files
author
Gareth Midwood
committed
Correct volume paths for apache config
1 parent f32cb43 commit 947651f

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

  • src/Environment/Command/Container

src/Environment/Command/Container/Php.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -209,13 +209,15 @@ private function _addEnvironmentVariables()
209209

210210
private function _editCustomWebroot()
211211
{
212+
$path = $this->_input->getOption('path');
213+
212214
$this->askQuestion(
213215
'What is the webroot directory, relative to `src` directory (e.g. web)',
214216
$this->_config['config-only']['relative_webroot_dir'],
215217
''
216218
);
217219

218-
$apacheConfigDirPath = '../config/apache';
220+
$apacheConfigDirPath = 'config/apache';
219221
$absoluteApacheConfigDirPath = $path . '/' . $apacheConfigDirPath;
220222

221223
// generate apache config file
@@ -230,9 +232,7 @@ private function _editCustomWebroot()
230232
);
231233

232234
// add volume to config
233-
$this->_config['volumes'][] = [
234-
$apacheConfigDirPath . ':/etc/apache2/sites-available'
235-
];
235+
$this->_config['volumes'][] = '../' . $apacheConfigDirPath . ':/etc/apache2/sites-available';
236236
}
237237

238238
/**

0 commit comments

Comments
 (0)