Open durden opened 8 years ago
We cannot always depend on a local clone of the content repo to be available since we're currently running on Heroku where the local file system can disappear out from under us. However, we could use a specific directory on the local file system instead of a temporary directory as we do now. It might work like the following:
cd
into it and run a git pull origin master
to update it then continue ongit clone
Currently the
tasks.move_article
task does a lot of git command-line actions to manually move an article directory from one publish status to another. This is necessary since this kind of action is not available from the API. However, the task clones the entire content repo each time, which could be improved to speed the task up.