Generate an SSH Key
You probably already have a public and private key. Check and make sure.
ls -a ~/.ssh | grep id
If you don't see these keys listed, generate them.
ssh-keygen -t rsa -C "email@example.com"
The next slide will make use of
$EDITOR. It is a sort of "global" bash variable you can set to your favorite editor. Programs like Git make use of it when told to do so.
export EDITOR="subl -w"
# Quick access to Bash Profile alias bp="$EDITOR ~/.bash_profile" # Quick access to homestead directory from terminal alias homestead="cd /path/to/your/homestead/repo" # Quick access to hosts file from terminal alias hosts="$EDITOR /private/etc/hosts" # Quick access to VM alias vm="ssh firstname.lastname@example.org -p 2222"
Adding a Site
- Clone my vagrant-test repo
- Edit Homestead.yaml
- Edit hosts file
- Hit the URL on port 8000 in your browser.