Autogenerate local machine vhost (mac osx)
-
PHP-cli tool
-
Site Directories must end in .local to be picked up
-
example /path/site.local will become http://local.site
define('SITES_PATH', '/Users/your-user/Sites');
define('VHOSTS_FILE', '/etc/apache2/extra/httpd-vhosts.conf');
define('HOSTS_FILE', '/etc/hosts');
sudo php index.php