symfony-docker icon indicating copy to clipboard operation
symfony-docker copied to clipboard

After 'composer install' my 'vendor' is empty

Open cleargoal opened this issue 2 years ago • 4 comments

Thanks for your work and please help me.

I work on Linux. I committed all points of your 'Installation' guide. After running 'composer install' the packages were downloaded and installed but after it, I see my 'vendor' folder empty. I use phpStorm.

Where is the 'vendor' which was installed packages in? Also, how to use these containers with phpStrom?

Volodymyr

cleargoal avatar Jul 22 '23 14:07 cleargoal

Did you solve it?

Juanpalacios08 avatar Oct 30 '23 18:10 Juanpalacios08

No. I use other package instead

cleargoal avatar Nov 01 '23 20:11 cleargoal

The authors of this repo used named volumes instead of bind volumes which is something you usually need when you have a complex CI/CD pipeline. To solve this issue you can simply replace this block in .docker/docker-compose.yml:

volumes:
  - ../:/var/www/symfony:cached
  - ../var:/var/www/symfony/var
  - ../vendor:/var/www/symfony/vendor

with:

volumes:
  - ../:/var/www/symfony

Note: In .docker/docker-compose.yml there are 2 such blocks (one under the nginx, the other under the php service), you have to replace both of them with my block

TOA-Anakin avatar Nov 30 '23 02:11 TOA-Anakin

The authors of this repo used named volumes instead of bind volumes which is something you usually need when you have a complex CI/CD pipeline. To solve this issue you can simply replace this block in .docker/docker-compose.yml:

volumes:
  - ../:/var/www/symfony:cached
  - ../var:/var/www/symfony/var
  - ../vendor:/var/www/symfony/vendor

with:

volumes:
  - ../:/var/www/symfony

Note: In .docker/docker-compose.yml there are 2 such blocks (one under the nginx, the other under the php service), you have to replace both of them with my block

Thank you very much

cleargoal avatar Nov 30 '23 20:11 cleargoal