Last active
June 23, 2019 10:09
-
-
Save roylee0704/5681de5899ecc8cd9d04e6bb12127a5c to your computer and use it in GitHub Desktop.
vagrant commands (on homestead)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#INTRODUCTION | |
# Vagrant is a virtual machine manager, it allows you to script the virtual machine configuration as well as the provisioning. | |
# add 'laravel/homestead' to vm/virtual-box via vagrant, ref: https://laravel.com/docs/5.3/homestead#first-steps | |
vagrant box add laravel/homestead -c | |
# up and running, do it in ~/.homestead | |
vagrant init hashicorp/precise64 | |
vagrant up | |
# ping homstead. If it fails | |
# 1. check if the dir in Homestead.yaml exists. The dir is your laravel project. | |
# 2. restart your machine. | |
# whenever you changes the yaml while vagrant is up and running, i.e. site: | |
vagrant reload --provision #soft reload. | |
# To destroy the machine, you may use: | |
vagrant destroy --force | |
# to ttl, goto your /homestead | |
vagrant ssh | |
# to open | |
{{repo}}.app #i.e: gobike-cron.app |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment