If running as server enable server mode before setting up

This commit is contained in:
Chris Roberts 2021-04-06 15:55:27 -07:00 committed by Paul Hinze
parent d501d77005
commit cefb514f77
No known key found for this signature in database
GPG Key ID: B69DEDF2D55501C0

View File

@ -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")