Symfony and doctrine issues

前端 未结 2 925
深忆病人
深忆病人 2021-01-23 15:12

I did not use the sudo when installing doctrine in symfony So this is what i got..

The \"https://flex.symfony.com/aliases.json\" file could not be downloaded: f         


        
相关标签:
2条回答
  • 2021-01-23 15:51

    When you install a recipe it installs some sample data to your .env.dist file.

    This is only for the first run when you install the recipe. After the install you can do what you want and remove that variables and use it from your Docker for example. So perhaps i don't understood your problem because you wrote that you don't want db config in your env file and in the last line you write that it won't add it.

    https://symfony.com/doc/current/configuration.html

    I know you use flex but there are some good examples how to use and how to do it. Flex should use the DotEnv-Component.

    The last thing is your error (https://flex.symfony.com/aliases.json). I think you have firewall that blocks the load of the aliases file. So you have to check that first. That call should work if you run it in your browser or with curl. Otherwise it could give a problem to load all components.

    0 讨论(0)
  • 2021-01-23 16:02

    I solved the issue by removing doctrine and reinstall the package :) and now the env file looks like it should :)

    0 讨论(0)
提交回复
热议问题