Company
Date Published
Author
Eugene Kudashev
Word count
595
Language
English
Hacker News points
None

Summary

The space sync tool in Contentful has been deprecated since January 2017, but a new version was released in November 2015, which is maintained by Contentful's ecosystem team and supported on an ongoing basis. The tool allows users to synchronize spaces, enabling custom workflow requirements. A software consulting firm, Xebia, used the space sync tool to set up two independent environments for production and content testing, syncing changes automatically between them using a Node.js script that utilizes the Contentful Sync API. The script copies new and updated content from one space to the other, achieving this by writing a synchronization token to a file and checking it when executed. Users can customize the sync process by specifying whether to sync only model or content with the -t flag.