方便 / 设置脚本禁用
禁用在 Magento 中自动应用设置脚本
0.2.0
2017-01-19 13:21 UTC
Suggests
README
禁用在 Magento 中自动应用设置脚本,这很酷,因为
- 它略微提高了性能,我们不需要在每次调用 Mage::run 时都检查设置脚本,因为设置脚本应该在部署过程中运行
- 它更安全。如果你在一个繁忙的服务器上随意部署,可能多个进程会多次启动设置脚本。这可能导致你的数据库进入意外或损坏的状态。
n98-magerun sys:setup:run
是我运行设置脚本的首选方法。
只需将其(以及你偏好的 composer 安装程序/自动加载器)放入你的 composer.json 中,一切就绪。
{
"require": {
"magento-hackathon/magento-composer-installer": "~2.0",
"convenient/setupscriptsdisabler":"~0.2"
},
"repositories": [
{
"type": "composer",
"url": "http://packages.firegento.com"
}
],
"extra": {
"magento-root-dir":"./",
"magento-force":"override"
}
}