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

前端 未结 13 1412
甜味超标
甜味超标 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:49

    I had same issue on Symfony 4 after switching in .env to prod. Some commands are not visible on prod.

    You either need to swap to dev or: bin/console --env=dev

    And so to start server: bin/console --env=dev server:run 0.0.0.0:8005

提交回复
热议问题