bin/magento deploy:mode:set production
Enabled maintenance mode
Starting compilation
Something went wrong while compiling generated code. See the error log for details.
Command returned non-zero exit code:
`/usr/local/php/bin/php -f /wwwroot/magentochina.org/bin/magento setup:di:compile`
依次运行下面命令就可以解决该问题:
bin/magento setup:upgrade
bin/magento indexer:reindex
bin/magento deploy:mode:set production -s (or --skip-compilation)
以下是我按照你的命令输入后,在第四步产生的错误回显,非常感谢你的帮忙
Allowed memory size of 268435456 bytes exhausted (tried to allocate 32 bytes) in /home2/wenorkhv/public_html/vendor/zendframework/zend-code/src/Scanner/FileScanner.php on line 36
你好,我换了一个主机,终于可以运行这些代码了。但是我打开I网页的时候依旧报错。
There has been an error processing your request
Unable to retrieve deployment version of static files from the file system.
是因为我这个主机不支持伪静态? 还是其他原因?