How to setup a basic symfony2 project after clonin

2019-08-06 03:51发布

问题:

Disclaimer: I'm new to this git thing.

I have made a fresh repository and pushed an standard, empty symfony2 project to it.

Now I have cloned my repo to another folder to test if I can set it up correctly. So far I can't...

The problem is I'm missing some folders such as cache and vendor as these are ignored in the .gitignore.

So when I try to run $ composer update I get an error since it tries to clear the cache folder which doesn't exist...

Anyone who can explain in simple terms how to setup a freshly cloned standard symfony2 project?

回答1:

It seems the only problem was the missing bin folder. I made a new symfony project, copy/pasted its bin into my cloned project and ran $ composer install as pr. Cerads advice. Then everything went smooth.