Deployment to private servers


How I can deploy my code to private servers?


It depends on how you want to do it and where you servers are. The simplest method is just to rsync files over.

I wrote a blog about how to do it with a Jekyll site here but the jekyll part is not relevant, the procedure is the same for any scenario where you need to move files from CricleCI to your own servers.


Thanks levlaz,

I need to deploy it to Windows Server 2012, how I can setup the circle file for Windows? I will need any dependency?


We don’t really have a first class way of deploying to Windows. What is your current strategy for deploying to a windows Server?


Currently I do it manually, I make a push with my commits from my local environment then I make a pull in Windows server
I’m looking for a way to do it automatically


hi @levlaz

I am trying to follow your approach but the rsync commend does not really work. here is the error message

rsync -avz _site/
sending incremental file list
rsync: mkdir "/home/ubuntu/hamdelesalvele/" failed: No such file or directory (2)
rsync error: error in file IO (code 11) at main.c(674) [Receiver=3.1.0]

rsync -avz _site/ returned exit code 11

Action failed: rsync -avz _site/

is it maybe because of the string /home/ubuntu/hamdelesalvele before

this is my circle.yml

branch: master
- rsync -avz _site/


Try adding a colon (:) to your hostname like this:

    branch: master
      - rsync -avz _site/

That will push the files to your server at the path /test/. If test is suppose to be relative, remove the slash before it in the rsync command. Then it would push to /home/u73769297/test.


okay, thanks. this is seems to be fixed. now my server has a problem :frowning:

closed #9