(Mac OSX 10.8.2 Mountain Lion)
I installed Virtual Box and Vagrant and got the initial site working. That was awesome enough that I wanted to keep going. I next wanted to clone a repo from GitHub for an existing Drupal site. I followed the "Adding New Sites" section of this (recommended) tutorial: http://webwash.net/tutorials/getting-started-drupal-vagrant

I vagrant ssh-ed into my Drupal box, and I created keys and put it on GitHub. When I go to clone in the public directory, I get:

fatal: could not create work tree dir '[my-project]'.: Permission denied

I see that the public directory is set to be owned by www-data in the vagrantfile. For Drupal-y reasons. How do I get around this? How are others Git cloning into their Drupal Vagrant instances? Help? Thanks.

Comments

Ivan Zugec’s picture

Try cloning the git repo from the host OS and not within the virtual machine. VirtualBox allows you to share folders between environments.

Hanpersand’s picture

I navigated to my public/[project]/www directory in terminal and cloned the contents of my repo into the www folder with this command:

git clone <remote> .

Then got my db up and running via the vbox phpMyAdmin. So, this works great. Thank you again. This whole enchilada needs more documentation, so again, in the meantime... the excellent tutorial by @Ivan Zugec that got me running Vagrant on Windows 7 and Mac OSX is here: http://webwash.net/tutorials/getting-started-drupal-vagrant

And many thanks.

Ivan Zugec’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.