从github克隆laravel项目 [英] cloning laravel project from github

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

问题描述

我是github的新手,我发现此网站对我们许多人来说非常有用.我想将laravel项目存储在github中,但是每次我将其克隆以能够投入生产时都会出现问题,当我最初要克隆它时,它总是显示此错误.

I'm new to github and I found this site very useful for lot of us. I came up on storing my laravel project here in github, but theres a problem every time I will clone it to be able to go to production, when im about to clone it at first, it always show this error.

Warning: require(C:\xampp\htdocs\tourismPortal\bootstrap/../vendor/autoload.php): failed to open stream: No such file or directory in C:\xampp\htdocs\tourismPortal\bootstrap\autoload.php on line 17

Fatal error: require(): Failed opening required 'C:\xampp\htdocs\tourismPortal\bootstrap/../vendor/autoload.php' (include_path='.;C:\xampp\php\PEAR') in C:\xampp\htdocs\tourismPortal\bootstrap\autoload.php on line 17

我知道可以通过使用composer update来解决此问题,但是有什么方法可以防止此错误,以便每次克隆它时,我都可以投入生产而不会遇到此错误?谢谢,顺便说一句,我正在使用tortoisegit进行克隆,提取和推送.

I know this will solved by using composer update on it, but is there any way to prevent this error so that every time I clone it, I will go to production without encountering this error? Thanks, by the way I'm using tortoisegit to clone, pull and push.

推荐答案

可以,但是完全不建议这样做.

Yes you can, but that is not recommended at all.

您可以删除.gitignore文件中的所有内容,并将其从正在运行的项目中推送.然后它将在您git clone的位置完美运行.

You can delete everything in .gitignore file and push them from a working project. Then it will work perfectly where you git clone them.

但是这种方式有很多缺点. 我建议您不要这样做.

But there are so many drawbacks in this way. I recommend you not to do that.

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

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