CodelyTV / php-ddd-example

🐘🎯 Hexagonal Architecture + DDD + CQRS in PHP using Symfony 7
https://pro.codely.tv/library/ddd-en-php
2.96k stars 1.08k forks source link

Issue running the project - No such file or directory #227

Closed Pijuli closed 3 years ago

Pijuli commented 3 years ago

Hi!

When trying to install the project I get this message on all of the apps:

Warning: file_put_contents(/app/apps/backoffice/backend/var/cache/test/CodelyTv_Apps_Backoffice_Backend_BackofficeBackendKernelTestDebugContainerDeprecations.log): Failed to open stream: No such file or directory

Am I missing something? Ubuntu 20.04, currently running many projects with docker...

image

trio1234 commented 3 years ago

Hi try delete /app/apps/backoffice/backend/var/cache folder and try again

Pijuli commented 3 years ago

I can't see that folder

image

Also tried down-ing the whole project and cloning it again. Same error

trio1234 commented 3 years ago

I think this is file permision problem because symfony create automatic this folder! Sry my english isnt very good! Try this

trio1234 commented 3 years ago

Enter to the docker container whit this command

docker exec -it codelytv-php_ddd_skeleton-mooc_backend-php bash and execute this command

chown www-data:www-data -R /app

this can fix this!

Pijuli commented 3 years ago

That did the trick! Thank you very much!