Symfony 部署步骤

前端之家收集整理的这篇文章主要介绍了Symfony 部署步骤前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

先注释掉 AppKernel.PHP 中的第三方 Bundle 注册
composer update -vvv
PHP bin/console doctrine:database:create

如果涉及到 doctrine-fixtures-bundle 相关内容导致无法composer update,先在 composer.json 中注释掉 doctrine-fixtures-bundledata-fixtures 相关内容,然后执行
PHP bin/console doctrine:fixtures:load

FOS/UserBundle 创建新用户
PHP bin/console fos:user:create user1 user1@abc.com user_password

生成 CRUD :
PHP bin/console doctrine:generate:crud

猜你在找的程序笔记相关文章