TransWikia.com

Freeform with project.yaml?

Craft CMS Asked by Urs on August 20, 2021

On my development instance, I added a freeform form. Now I would like to deploy that form to the staging, or later, live site.

When committing my changes, I noticed that nothing was added to project.yaml. So I guess the changes are just saved in the DB and will not be synced at git-based deploy.

Is that by design? Can I enable useProjectConfigFile somewhere?

If not: how do I export the form definitions and deploy them to another instance? By MySQL?

2 Answers

In my experience none of the Solspace plugins migrate their admin stuff the "Craft" way.

I would not recommend useProjectConfigFile if you are using Freeform or Calendar, as this will lead to confusion.

Answered by Steve Mock on August 20, 2021

Project config is designed to sync the architecture of your site, not the content, so structural changes can be made without affecting the content. Forms are seen as content, like entries, so this would be the expected behaviour.

The suggested workflow would be to create the form on the production site, then pull to local environment to do any front-end work, then push those changes to production.

The nystudio107 craft scripts are pretty useful for syncing databases and assets if needed.

Answered by dmatthams on August 20, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP