zesty-io / nextjs-starter

NextJS Starter Example for Running Zesty.io CMS
The Unlicense
9 stars 6 forks source link

remove: installation step from sync script #64

Closed shrunyan closed 8 months ago

shrunyan commented 8 months ago

Installation of a template is a destructive action. As it will reset(read: delete existing database schema and content) an instance before installing the selected template schemas and content.

While this is a necessary process to ensure the integrity of the selected template, it is not something which should happen during syncing. As such this PR removes the step from the sync script.

Instead installation is handled within the zesty/cli init command. Which only does an installation on a newly created instance. Which only occurs if the user has no pre-existing instances and at the users direction. The init command occurs separately from the sync.