您当前的位置: 首页 > 慢生活 > 程序人生 网站首页程序人生
magento2常用命令
发布时间:2023-07-10 21:35:01编辑:雪饮阅读()
-
重新索引
D:\phpstudy_pro\Extensions\php\php5.6.9nts\php.exe -c D:\phpstudy_pro\Extensions\php\php5.6.9nts\php.ini .\bin\magento indexer:reindex
更改为开发模式
D:\phpstudy_pro\Extensions\php\php5.6.9nts\php.exe -c D:\phpstudy_pro\Extensions\php\php5.6.9nts\php.ini .\bin\magento deploy:mode:set developer
重新部署静态文件
D:\phpstudy_pro\Extensions\php\php5.6.9nts\php.exe -c D:\phpstudy_pro\Extensions\php\php5.6.9nts\php.ini .\bin\magento setup:static-content:deploy
激活主题
D:\phpstudy_pro\Extensions\php\php5.6.9nts\php.exe -c D:\phpstudy_pro\Extensions\php\php5.6.9nts\php.ini .\bin\magento cache:clean
D:\phpstudy_pro\Extensions\php\php5.6.9nts\php.exe -c D:\phpstudy_pro\Extensions\php\php5.6.9nts\php.ini .\bin\magento setup:upgrade
D:\phpstudy_pro\Extensions\php\php5.6.9nts\php.exe -c D:\phpstudy_pro\Extensions\php\php5.6.9nts\php.ini .\bin\magento setup:static-content:deploy
重新生成缓存
D:\phpstudy_pro\Extensions\php\php5.6.9nts\php.exe -c D:\phpstudy_pro\Extensions\php\php5.6.9nts\php.ini .\bin\magento cache:clean
D:\phpstudy_pro\Extensions\php\php5.6.9nts\php.exe -c D:\phpstudy_pro\Extensions\php\php5.6.9nts\php.ini .\bin\magento cache:flush
关闭缓存
D:\phpstudy_pro\Extensions\php\php5.6.9nts\php.exe -c D:\phpstudy_pro\Extensions\php\php5.6.9nts\php.ini .\bin\magento cache:disable
查看当前开发模式
D:\phpstudy_pro\Extensions\php\php5.6.9nts\php.exe -c D:\phpstudy_pro\Extensions\php\php5.6.9nts\php.ini .\bin\magento deploy:mode:show
css文件覆盖后的刷新工作
D:\phpstudy_pro\WWW\www.xymegento.com> grunt refresh
部署静态内容(仅部署某个theme)
D:\phpstudy_pro\Extensions\php\php5.6.9nts\php.exe -c D:\phpstudy_pro\Extensions\php\php5.6.9nts\php.ini .\bin\magento setup:static-content:deploy --theme=Magento/blank2
据说是自定义了css样式后需要重新编译的命令
D:\phpstudy_pro\Extensions\php\php5.6.9nts\php.exe -c D:\phpstudy_pro\Extensions\php\php5.6.9nts\php.ini .\bin\magento setup:di:compile
好像是这个编译有时候会编译混乱,需要删除下这个目录。。。(power shell不支持),然后好像要重新编译,后面还要删除缓存(删除缓存我有点质疑)
rmdir /s /q D:\phpstudy_pro\WWW\www.xymegento.com\var\generation
关键字词:magento
上一篇:docker一键构建lnmp(非docker-compose)
下一篇:docker-compose一键构建(非直接使用docker官方hub中的php、mysql、nginx镜像而是自己拆分Dockerfile)lnmp