Skip to content

Instantly share code, notes, and snippets.

@MaskeZen
Created July 19, 2019 21:17
Show Gist options
  • Save MaskeZen/3a4cc343738c998452f58da6e0315e08 to your computer and use it in GitHub Desktop.
Save MaskeZen/3a4cc343738c998452f58da6e0315e08 to your computer and use it in GitHub Desktop.
Vagrant notas

Vagrant

  • vagrant init box
  • vagrant up
  • vagrant ssh
  • vagrant global-status
  • vagrant reload --provision Recarga la máquina y corre los scripts en provision. custom boxes

Networking

port forwarding

config.vm.network :forwarded_port, guest: 80, host: 4567

Otras opciones: networking

Share

Vagrant Share

$ vagrant share
...
==> default: Creating Vagrant Share session...
==> default: HTTP URL: http://b1fb1f3f.ngrok.io
...

Teardown

  • suspend
  • halt
  • destroy
set http_proxy=http://dmascheroni:password@10.0.3.10:80
set https_proxy=%http_proxy%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment