Deploying Mezzanine project using fabric - from Windows 7

October 8, 2019 250 views
Python Django Python Frameworks

I have tried finding some info around this on the web, but with little success. Hopefully someone here has some insight which can help me progress.

So, I’m basically ready to deploy my Mezzanine project to an Ubuntu14 droplet… I ran “fab secure”, which went fine. Then, when I run “fab create”, this error occurs:

[1xx.xx.xxx.xxx] out: Using base prefix ’/usr’
[1xx.xx.xxx.xxx] out: New python executable in /home/adm/.virtualenvs/project/bin/python3
[1xx.xx.xxx.xxx] out: Also creating executable in /home/adm/.virtualenvs/project/bin/python
[1xx.xx.xxx.xxx] out: Installing setuptools, pip, wheel…
[1xx.xx.xxx.xxx] out: done.
[1xx.xx.xxx.xxx] out:
[1xx.xx.xxx.xxx] rsyncproject: rsync –exclude “.pyc” –exclude “.pyo” –exclude “*.db” –exclude “.DSStore” –exclude “.coverage” –exclude “local_settings.py” –exclude “/static” –exclude “/.git” –exclude “/.hg” -pthrvz –rsh=‘ssh -p 22 ’ C:\Users\user\Desktop\blog\project\ adm@1xx.xx.xxx.xxx:/home/adm/mezzanine/project

[localhost] local: rsync –exclude “.pyc” –exclude “.pyo” –exclude “*.db” –exclude “.DSStore” –exclude “.coverage” –exclude “localsettings.py” –exclude “/static” –exclude “/.git” –exclude “/.hg” -pthrvz –rsh=‘ssh -p 22 ’ C:\Users\user\Desktop\blog\project\ adm@1xx.xx.xxx.xxx:/home/adm/mezzanine/project

rsync is not recognized as an internal or external command,
executable program or batch file.

Fatal error: local() encountered an error (return code 1) while executing 'rsync –exclude “.pyc” –exclude “.pyo” –exclude “*.db” –exclude “.DSStore” –exclude “.coverage” –exclude “localsettings.py” –exclude “/static” –exclude “/.git” –exclude “/.hg” -pthrvz –rsh='ssh -p 22 ’ C:\Users\user\Desktop\blog\project\adm@1xx.xx.xxx.xxx:/home/adm/mezzanine/project’

Aborting.
Disconnecting from 1xx.xx.xxx.xxx… done.

Now, according from the above, it’s due to my system not having Rsync. I have found some potential solution, like installing CygWin for windows7, and then installing Rsync. Is this a good idea, or will it mess up something?

Alternatively, can I use Git? In this case, how do I go about setting up Git for it? There’s no guide/template/example on this wherever I look.

Any help is very appreciated. Thanks for reading so far.

1 Answer

Hello,

What you could do is install bash on your Windows PC and then use Terminus as your SSH client.

Here’s how to enable bash on your Windows PC:

https://stackoverflow.com/questions/36352627/how-to-enable-bash-in-windows-10-developer-preview

After that you can download Terminus from here:

https://github.com/Eugeny/terminus/releases

That way you would be able to have rsync installed locally on your machine and the method should work.

Also with this setup your Windows would be a bit UNIX like as you would have a nice terminal along with bash.

Let me know how it goes!
Regards,
Bobby

Have another answer? Share your knowledge.