Skip to content

Commit

Permalink
Tag v9.0.4 & CS tweak
Browse files Browse the repository at this point in the history
Code Style tweak to make it easier to human lint what we're sending to site scripts
  • Loading branch information
svpernova09 committed Jul 21, 2019
1 parent 93628a6 commit bbcee28
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bin/homestead
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
15 changes: 14 additions & 1 deletion scripts/homestead.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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']
Expand Down

0 comments on commit bbcee28

Please sign in to comment.