vagrant.rst
changeset 2237 1223e5073007
parent 2236 15e9cc9e054f
child 2238 a0d98c23cd6b
equal deleted inserted replaced
2236:15e9cc9e054f 2237:1223e5073007
    11   VAGRANT_HOME=d:\srv\vagrant
    11   VAGRANT_HOME=d:\srv\vagrant
    12 
    12 
    13 Default is ``~/.vagrant.d`` for Linux and ``%USERPROFILE%\.vagrant.d`` for Windows.
    13 Default is ``~/.vagrant.d`` for Linux and ``%USERPROFILE%\.vagrant.d`` for Windows.
    14 
    14 
    15 https://www.vagrantup.com/docs/other/environmental-variables.html
    15 https://www.vagrantup.com/docs/other/environmental-variables.html
       
    16 
       
    17 Managing boxes
       
    18 ==============
       
    19 
       
    20 Adding new box from catalog::
       
    21 
       
    22   $ vagrant box add ubuntu/trusty64
       
    23 
       
    24 Checking for box updates::
       
    25 
       
    26   $ cd $BOXDIR
       
    27   $ vagrant box outdated
       
    28 
       
    29 Disable checking for update each time you call ``vagrant`` command::
       
    30 
       
    31   Vagrant.configure("2") do |config|
       
    32     config.vm.box_check_update = false
       
    33   end
       
    34 
       
    35 Download box update::
       
    36 
       
    37   $ vagrant box update
       
    38 
       
    39 .. note::
       
    40    ``vagrant box update`` does not magicall updates your existing boxes. In just download
       
    41    updated versions. To install new versio you need to destroy and install new boxes::
       
    42 
       
    43      $ vagrant destroy
       
    44      $ vagrant up
       
    45 
       
    46 To remove box at specific version::
       
    47 
       
    48   $ vagrant box remove laravel/homestead --box-version 1.1.0
       
    49 
       
    50 https://www.vagrantup.com/docs/cli/box.html
       
    51   Command: ``vagrant box``.
       
    52 https://www.vagrantup.com/docs/boxes/versioning.html
       
    53   Box Versioning.
    16 
    54 
    17 Running individual provisioning scripts
    55 Running individual provisioning scripts
    18 =======================================
    56 =======================================
    19 
    57 
    20 You may give name to provisioning script::
    58 You may give name to provisioning script::