mirror of
https://github.com/hashicorp/vagrant.git
synced 2026-07-16 04:15:49 -04:00
If running as server enable server mode before setting up
This commit is contained in:
parent
d501d77005
commit
cefb514f77
1 changed files with 5 additions and 0 deletions
|
|
@ -188,6 +188,11 @@ begin
|
|||
argv += argv_extra
|
||||
end
|
||||
|
||||
# Check if we are running the server
|
||||
if Vagrant::CLI.new(argv.dup, nil).sub_command == "serve"
|
||||
Vagrant.enable_server_mode!
|
||||
end
|
||||
|
||||
# Create the environment, which is the cwd of wherever the
|
||||
# `vagrant` command was invoked from
|
||||
logger.debug("Creating Vagrant environment")
|
||||
|
|
|
|||
Loading…
Reference in a new issue