welaika / wordmove

Multi-stage command line deploy/mirroring and task runner for Wordpress
https://wptools.it/wordmove
MIT License
1.87k stars 167 forks source link

Permission denied when pull request (using vagrant) #413

Closed giantleif closed 7 years ago

giantleif commented 7 years ago

When I run:

wordmove pull --all

I get the following error:

▬▬ ✓ Pulling wordpress core ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ remote | get_directory: /var/www/vhosts/hostsite.com/mysite /home/leif/vagrant-local/www/mysite/htdocs .git/ .gitignore .sass-cache/ node_modules/ bin/ tmp/* Gemfile* Movefile wp-config.php wp-content/*.sql.gz .htaccess wp-content/* /usr/local/rvm/rubies/ruby-2.4.1/lib/ruby/2.4.0/fileutils.rb:229:in 'mkdir': Permission denied @ dir_s_mkdir - /home/leif (Errno::EACCES)

giantleif commented 7 years ago

I found my issue. In my Movefile I had set the local wordpress_path to my local dev machine. I needed to update this to the vagrant path that is used when I ssh into the vm.

wrong:

wordpress_path: "/home/leif/vagrant-local/www/vcc/htdocs" # use an absolute path here

correct:

wordpress_path: "/vagrant/www/sitename/htdocs" # use an absolute path here

I also needed to install sshpass in the VM.

alessandro-fazzi commented 7 years ago

Dear @giantleif ,

I'm thankful you posted your solution together with the issue :D This will be really helpful for other users.

I hope to have done a good thing updating the issue title with the intention to have it more speaking for a the search engine :)

Hope you'll enjoy using wordmove working on your project