Current Situation
My team is based in Singapore. We needed to install a Django web app inside China for speed reasons for an enterprise client for intranet usage.
So we did it like this.
What's wrong?
The git clone is painfully slow and our files are > 50 mb.
What have you tried?
I am thinking of setting up an intermediate server in HongKong to reduce the latency for git clone.
Maybe the diagram is a bit off.
We used CircleCI. I think we can get CircleCI to have the following setup.
Whenever GitHub received an update on the master branch of our repo, the HongKong server will pull the latest master branch copy down.
For the China server, I guess I can configure it to do a git pull every day at some off peak hours using cronjob.
So what's your issue?
I can google for the git setup steps quite easily like this https://git-scm.com/book/en/v1/Git-on-the-Server-Setting-Up-the-Server
My concern is whether my approach described above makes sense.
If it makes sense, then my question is how do I configure the CircleCI to do that?
Our team experience with CircleCi is limited to having it work with GitHub and Heroku. We never have used it with GitHub and a standalone server which we will operate on.