Deploying from windows

Hi matth,

I have successfully deployed to DO from a Windows 8.1 machine.

The error you’re getting has something to do with Windows messing up the file so that it does not execute properly in your VM.

  1. Copy the hosts directory to a place that is exclusively available on the VM

    cp hosts /srv/www/

  2. I edited the deploy.sh file

    nano deploy.sh

And changed the following line

-DEPLOY_CMD="ansible-playbook -i hosts/$1 deploy.yml --extra-vars="site=$2""

To the new file path

+DEPLOY_CMD="ansible-playbook -i /srv/www/hosts/$1 deploy.yml --extra-vars="site=$2""
  1. Then I executed the deploy command with the new hosts location

    ansible-playbook -i /srv/www/hosts/ server.yml

If you receive a permission denied SSH error, follow this
https://help.github.com/articles/generating-ssh-keys/

I think I mentioned all the steps. Let me know if this doesn’t work

Sidenote
As a Windows user who is interested in a multisite install, I have decided that using Windows to run these programs is cumbersome and frustrating. So I’m trying to set up development VPS and use rsync so I can edit files from my Windows computer…

My biggest issue with using Windows is that as the size of my project gets bigger, the web server runs slower. I’m looking at minimum 5 second page load times.

I read somewhere that this has to do with synced folders

I also dread having to use vagrant destroy. Since you have to do a lot of updates in the VM, you will lose a ton of configuration settings necessary to get everything working in the first place.

The Landrush plugin for multisite also does not work on Windows, so hopefully you don’t need it.

2 Likes