如何从github克隆基本symfony2项目后设置 [英] How to setup a basic symfony2 project after cloning it from github

查看:155
本文介绍了如何从github克隆基本symfony2项目后设置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

免责声明:我是新的这个git的东西。



我创建了一个新的存储库,推送一个标准的空symfony2项目。

现在我已经克隆我的repo到另一个文件夹,以测试我是否可以正确设置。到目前为止我不能...



问题是我缺少一些文件夹,如缓存和供应商,因为这些在.gitignore中被忽略。



所以当我尝试运行 $ composer update 时,我得到一个错误,因为它试图清除缓存文件夹存在...



任何人可以用简单的语言解释如何设置一个新克隆的标准symfony2项目?

解决方案

似乎唯一的问题是缺少bin文件夹。我做了一个新的symfony项目,复制/粘贴其bin到我克隆的项目,并运行 $ composer install 作为pr。 Cerads建议。然后一切顺利。


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?

解决方案

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.

这篇关于如何从github克隆基本symfony2项目后设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆