server:run Exception There are no commands defined in the “server” namespace

前端 未结 13 1377
甜味超标
甜味超标 2020-12-25 10:17

When I run the server using php bin/console server:run I get the following error. There are no commands defined in the \"server\" namespace.

<
13条回答
  •  长发绾君心
    2020-12-25 10:35

    As @Barh says, you must have APP_ENV=dev in your .env file.

    Otherwise Symfony 4 will not be runnable in dev mode.

提交回复
热议问题