File tree Expand file tree Collapse file tree
src/Environment/Command/Container Expand file tree Collapse file tree Original file line number Diff line number Diff 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 /**
You can’t perform that action at this time.
0 commit comments