Magento: How can I migrate configuration changes from development to production environment?

后端 未结 2 573
灰色年华
灰色年华 2021-01-02 19:14

We are actively developing modules and when we push the changes to our production site, there are usually several configuration changes we need to make. Would be nice to aut

2条回答
  •  失恋的感觉
    2021-01-02 19:33

    Make the changes as part of a an install or upgrade script in your module's "sql" directory. In your module's "config.xml" file increment the version number of every matching change and also remember to fill in the node.

    Because the script is run within the context of Magento you have access to all the normal functionality too, updates don't have to be in the form of SQL commands.

提交回复
热议问题