I initially named my project with a tentative domain name. The site’s actual domain is different and I’d like to rename the project directory to reflect that.
I tried simply renaming the directory but
vagrant up threw a couple of errors relating to exports. I tried to find the relevant files in the project and rename the domain but I still haven’t got it working.
Is there a way to do this?
vagrant reload first. If not you might have to destroy it and start again. Just make sure to back up the database if you need it.
Thanks for the suggestion! I got this working:
- Rename directory and move into it
- Replace two instances of the old directory name appearing in hostpaths in trellis/.vagrant/machines/default/virtualbox/synced_folders
- Replace one instance of the old directory name in trellis/.vagrant/provisioners/ansible/inventory/vagrant_ansible_inventory
- Replace one instance of old directory name in /etc/exports