From cefb514f77db37f2e4897ce9ffbebf4cf6343299 Mon Sep 17 00:00:00 2001 From: Chris Roberts Date: Tue, 6 Apr 2021 15:55:27 -0700 Subject: [PATCH] If running as server enable server mode before setting up --- bin/vagrant | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bin/vagrant b/bin/vagrant index b539d3479..e37207f3d 100755 --- a/bin/vagrant +++ b/bin/vagrant @@ -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")