Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Mar 6, 2021. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .cakebox/Vagrantfile.rb
Original file line number Diff line number Diff line change
Expand Up @@ -217,14 +217,14 @@ def Cakebox.configure(config, user_settings)
end
end

# Create Nginx site configuration files for all yaml specified "sites"
unless settings["sites"].nil?
settings["sites"].each do |site|
# Create Nginx virtual hosts for all yaml specified "vhosts"
unless settings["vhosts"].nil?
settings["vhosts"].each do |vhost|
config.vm.provision "shell" do |s|
s.privileged = false
s.inline = "bash /cakebox/console/bin/cake site add $@"
s.args = [ site["url"], site["webroot"] ]
s.args.push(site["options"]) if !site["options"].nil?
s.inline = "bash /cakebox/console/bin/cake vhost add $@"
s.args = [ vhost["url"], vhost["webroot"] ]
s.args.push(vhost["options"]) if !vhost["options"].nil?
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion Cakebox.yaml.default
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ synced_folders:

apps:

sites:
vhosts:

databases:

Expand Down