从 github 克隆 laravel 项目

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

问题描述

我是 GitHub 的新手,我发现这个网站对我们很多人都非常有用.我偶然把我的 Laravel 项目存储在 GitHub 中,但是每次我将它克隆到能够投入生产时都会出现问题,当我一开始要克隆它时,它总是显示这个错误.

I'm new to GitHub and I found this site very useful for a lot of us. I came upon storing my Laravel project here in GitHub, but there's a problem every time I will clone it to be able to go to production, when I'm about to clone it at first, it always shows this error.

Warning: require(C:xampphtdocs	ourismPortalootstrap/../vendor/autoload.php): failed to open stream: No such file or directory in C:xampphtdocs	ourismPortalootstrapautoload.php on line 17

Fatal error: require(): Failed opening required 'C:xampphtdocs	ourismPortalootstrap/../vendor/autoload.php' (include_path='.;C:xamppphpPEAR') in C:xampphtdocs	ourismPortalootstrapautoload.php on line 17

我知道这将通过对其使用 composer update 来解决,但是有什么方法可以防止这个错误,以便每次我克隆它时,我都会去生产而不会遇到这个错误?谢谢,顺便说一句,我正在使用 tortoisegit 来克隆、拉取和推送.

I know this will be 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.

推荐答案

可以,但完全不推荐.

您可以删除 .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 项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!

相关文档推荐

Convert JSON integers and floats to strings(将JSON整数和浮点数转换为字符串)
in php how do I use preg replace to turn a url into a tinyurl(在php中,如何使用preg替换将URL转换为TinyURL)
all day appointment for ics calendar file wont work(ICS日历文件的全天约会不起作用)
trim function is giving unexpected values php(Trim函数提供了意外的值php)
Basic PDO connection to MySQL(到MySQL的基本PDO连接)
PHP number_format returns 1.00(Php number_Format返回1.00)