deploy-tools
deploy-tools copied to clipboard
On second deployment, default name vagrant.dev conflicts with first (default) deployment
On my machine I want to use deploy-tools for a second project, creating a second Vagrant box for testing. I must edit several files to make this work since the default name vagrant.dev conflicts with the first project that uses those defaults.
vagrant/assets/overlay/etc/apache2/sites-available/vagrant:
ServerName vagrant.dev
ServerAlias *.vagrant.dev
If this is not modified before provisioning the VM with vagrant up, it needs to be modified by SSHing to the VM, editing the files /etc/apache2/sites-available/vagrant and /etc/apache2/sites-enabled/vagrant, and Apache must be restarted.
Information printed out in vagrant/boot-script.sh:
echo "192.168.33.10 vagrant.dev"
echo "Visit vagrant.dev to see your project up and running"
The Local Development with Vagrant section of the README.md would need to include a section about modifying these.