diff --git a/bin/homestead b/bin/homestead index 72a8f56d9..135f0b7b7 100755 --- a/bin/homestead +++ b/bin/homestead @@ -3,7 +3,7 @@ require __DIR__.'/../../../autoload.php'; -$app = new Symfony\Component\Console\Application('Laravel Homestead', '9.0.4'); +$app = new Symfony\Component\Console\Application('Laravel Homestead', '9.0.5'); $app->add(new Laravel\Homestead\MakeCommand); diff --git a/scripts/homestead.rb b/scripts/homestead.rb index cb47ef571..71126ffc3 100644 --- a/scripts/homestead.rb +++ b/scripts/homestead.rb @@ -316,8 +316,21 @@ def self.configure(config, settings) rewrites.gsub! '$', '\$' end + # Convert the site & any options to an array of arguments passed to the + # specific site type script (defaults to laravel) s.path = script_dir + "/site-types/#{type}.sh" - s.args = [site['map'], site['to'], site['port'] ||= http_port, site['ssl'] ||= https_port, site['php'] ||= '7.3', params ||= '', site['xhgui'] ||= '', site['exec'] ||= 'false', headers ||= '', rewrites ||= ''] + s.args = [ + site['map'], # $1 + site['to'], # $2 + site['port'] ||= http_port, # $3 + site['ssl'] ||= https_port, # $4 + site['php'] ||= '7.3', # $5 + params ||= '', # $6 + site['xhgui'] ||= '', # $7 + site['exec'] ||= 'false', # $8 + headers ||= '', # $9 + rewrites ||= '' # $10 + ] # generate pm2 json config file if site['pm2']