Skip to content

Instantly share code, notes, and snippets.

@brunohulk
Last active June 12, 2017 15:00
Show Gist options
  • Save brunohulk/7b1eb6a7cb6ca4019791e74cfc0af2cb to your computer and use it in GitHub Desktop.
Save brunohulk/7b1eb6a7cb6ca4019791e74cfc0af2cb to your computer and use it in GitHub Desktop.
#vagrant global-status -> Status of the vagrant's boxes
#Create a vagrant file
vagrant init
#Vagrant file sample
Vagrant.configure("2") do |config|
config.vm.box = "rbayliss/PHP53"
config.vm.network "forwarded_port", guest: 80, host: 8080
config.vm.synced_folder "relative_folder", "/var/www"
end
#Up the vagrant
vagrant up
#Connect to a vagrant box
vagrant ssh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment