forked from browsermedia/browsercms
-
Notifications
You must be signed in to change notification settings - Fork 9
Content importing
peakpg edited this page Dec 5, 2013
·
2 revisions
Moving content between local development and production servers should be easier/possible. First goal should be to make it easier to build out an entire site locally then push it to a staging server without needing to reenter the content.
- GUID/CID - A globally unique content id that would be assigned when content is created. This would handle the fact that ids for content are not unique across servers. Would be in addition to primary key to avoid needing to change keys. This ID would not need to be exposed via UI, but used only by content importing to detect 'new' content.
- Content/Seeds - Locally, you could run a rake task that would create .md files (similar to Jekyll format) for all (or some) content. These files could be checked into source (db/content) similar to seed data. Another rake task could be run on the server to add these new files.
- Environment comparison - Local environments could be made aware of staging/production servers to determine if new content exist or not.