$ vagrant global-status id name provider state directory -------------------------------------------------------------------------- edb8f98 default virtualbox aborted /Users/mazhibin/project/learn/laravel/Homestead 2fc4f12 default virtualbox running /Users/mazhibin/project/learn/vagrent
The above shows information about all known Vagrant environments on this machine. This data is cached and may not be completely up-to-date. To interact with any of the machines, you can go to that directory and run Vagrant, or you can use the ID directly with Vagrant commands from any directory. For example: "vagrant destroy 1a2b3c4d"
# 提供特定的参数来更好的调整各个Vagrant的虚拟机实现。 # 比如下面就针对virtualbox环境做了特定的调整: # # config.vm.provider "virtualbox" do |vb| # # Display the VirtualBox GUI when booting the machine # vb.gui = true # # # Customize the amount of memory on the VM: # vb.memory = "1024" # end
# 可以把Vagrant中的代码push到生产环境或者测试环境 # 具体的请见:https://docs.vagrantup.com/v2/push/atlas.html # config.push.define "atlas" do |push| # push.app = "YOUR_ATLAS_USERNAME/YOUR_APPLICATION_NAME" # end