Currently the script run hourly to build our website is pulling all
I would like to add a commit/push then, in order to track each PO
updates. That would ensure for us to do it frequently (currently I do it
manually times to times) and would be faster for us to checkout them
(pulling from Transifex is really slow).
Do we need to pull every hours? We do so much requests on the
server. I don't mind, but just wanted to point that out.
The script would be then:
< rsync -qa --delete-after --delay-updates out/
rsync -qa --delete-after --delay-updates out/
"/srv/web/$site/" && \
git add po/*.po && \
git commit -m "update POs in $site" && \
git push; \
Please, note that I have really no idea if pushing from there is
allowed, even if this is working. It is not the aim of a production
server… Should we add a cron somewhere?
Do you see the advantage of this?
I also though of a way to update POT frequently.
Couldn't we push the pot at each rebuild from the master?
All major changes would always be in an other branch, right? Therefore
there should be no way to avoid POT change from master (from the
translator side). A daily job would also do it.
Here find as attachment a patch proposal (please mind that I wrote it
without test and that I am not a bash guru)