Allows you to add apache vhosts to a PuPHPet + Vagrant machine using a few questions on your command line.
yarn global add puphpet-helper
or
npm install -g puphpet-helper
Currently asks the following questions:
Domain? (example.local)
Document root? (/var/www/example.local)
Port? (80)
Are you happy and ready to go? (Y/n)
After answering Y on the last question will start the installation.
puphpet-helper will create puphpet/config-custom.yaml
if it does not exist yet and append
the vhost to the file using the vhost.yaml
template from the templates/
folder in this app.
- Through a question, add the new vhost to the host-machine's host file
- output the command to append it to the host file (like
echo <IP> <VHOST> >> /etc/hosts
) - if puphpet-helper is run with root/elevation, add it
- output the command to append it to the host file (like
- Add support for MySQL databases
- Make questions more dynamic (e.g. when answering the domain question with test.local, make the default for Document root /var/www/test.local/public_html)
- Don't ask for the port, ask for HTTP or HTTPS (and base public_html and private_html on that)
- Add support for self-signed SSL certs and a root certificate