从git repo运行Laravel [英] Running Laravel from a git repo
问题描述
我可以使用安装流程安装Laravel并使其运行良好,但是我可以不明白的是我如何能够推送相同的源代码,并能够从回购库中运行它,如 github上。当我这样做时,克隆它不会让我能够运行 php artisan
任何东西。
此外,当我有一个工作目录时,将其推回到一个回购库,将其克隆回去仍然不起作用。我无法运行 artisan
。我能做到这一点的唯一方法就是通过安装说明中的作曲家来创建一个新项目。
请指导我;我在这里不知所措。
为了解决这个问题,运行 composer install
,然后
I can install Laravel and get it up and running just fine using the installation process, but what I don't understand is how I'm suppose to be able to push that same source code and be able to run it from a repo, like github. When I do this, cloning it in doesn't allow me to be able to run php artisan
anything.
Moreover, when I have a working directory, pushing that up to a repo, cloneing it back down, still doesn't work. I'm unable to run artisan
. The only way I can do this is through composer from the install instructions, which would create a new project.
Please guide me; I'm at a loss here.
Its because the vendor directory is not included when you clone.
To solve it run composer install
where you cloned it, and then artisan
should work.
这篇关于从git repo运行Laravel的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!