Monkee-Boy uses Vagrant for local dev environments. This VM mirrors our Habitat server. Do not update versions on your own. We will update the VM as Habitat is updated. This was created using PuPHPet.
- Provider: VirtualBox
- Distro: Ubuntu Xenial 16.04 LTS x64
- IP Address: 192.168.22.10
- Apache: v2.4
- PHP: v7.0
- Ruby: v2.2.3 (with RVM)
- Python: v2.7
- node.js: v4
- MySQL: v5.7
- SQLite: v3.11
- MailHog: v0.2.1
- WP CLI: v0.24
git clone git@github.com:Monkee-Boy/PuPHPet.git && cd PuPHPet
vagrant up
- Use
vagrant ssh
if you need to make any further changes.
cd
to this git repo.vagrant ssh -c 'sudo vhost -s client-domain.test -a www.client-domain.test -d /var/www/path-to-the-client-site'
-s
is the server name,-a
is the server alias,-d
is the document root.
- Edit your hosts file with
192.168.22.10 client-domain.test
. - http://client-domain.dev should now work.
- Edit
./vhostalias.sh
with your vagrant id. Get this by runningvagrant global-status
. - Setup
alias vagrantvhost="sh ~/Sites/PuPHPet/vhostalias.sh"
as an alias. Modify the path to this vagrant repo. - Add new domain with
vagrantvhost client-domain.dev /var/www/clientname/site
. This will automatically include a server alias of www. - Feel free to modify the alias to whatever is easier for you.
We recommend using SequelPro for easy database management.
- Type:
SSH
- Host:
192.168.22.10
- User:
root
- Pass:
root
- SSH Host:
192.168.22.10
- SSH User:
vagrant
- SSH Password/Key: Select
./puphpet/files/dot/ssh/id_rsa
.- This key is generated after your initial
vagrant up
.
- This key is generated after your initial
Handcrafted with ♥ in Austin, Texas by the Monkee-Boy Troop.
| | | :---:|:---:|:---:|:---:|:---: James Fleeting | Pete Gautier | John Hoover | David Saunders