Difference between revisions of "Vagrant"
Jump to navigation
Jump to search
Line 18: | Line 18: | ||
vagrant up # this starts vagrant Should show in Virtual box | vagrant up # this starts vagrant Should show in Virtual box | ||
'''Vagrant Commands''' | '''Vagrant Commands''' | ||
# vagrant destroy - Will completely delete the box | # vagrant destroy - Will completely delete the box and any installed programs | ||
# vagrant suspend will suspend the box | # vagrant suspend will suspend the box | ||
# vagrant resume - resume from suspend | # vagrant resume - resume from suspend |
Revision as of 23:03, 12 February 2019
Setting Up Vagrant
Download Vagrant
Vagrant Boxes
Make Directory to work in (mac windows or linux)
mkdir mydir cd mydir code . # this open Visual Studio Code with a blank page
Vagrant and project files will go into this directory Steps in vagrant setup
- config.vm.box - Operating System
- config.vm.provider - virtualbox
- config.vm.network - How your host sees your box
- config.vm.synced_folder - How you access files from your computer
- confif.vm.provision - What we want to setup
- Download vagrant box from the Vagrant Boxes Website
vagrant init ubuntu/trusty64 vagrant up # this starts vagrant Should show in Virtual box
Vagrant Commands
- vagrant destroy - Will completely delete the box and any installed programs
- vagrant suspend will suspend the box
- vagrant resume - resume from suspend
Update Features of the Vagrant Box
vagrant reload # will reload box after config is changed
SSH into box
vagrant ssh