pluralsight / guides-cms

DEPRECATED - Markdown based CMS with Github repository as persistent storage
http://www.pluralsight.com/guides/
GNU Affero General Public License v3.0
108 stars 35 forks source link

Speedup move_article task #76

Open durden opened 8 years ago

durden commented 8 years ago

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.

durden commented 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: