如何在没有 php Artisan serve 的情况下查看 Laravel 视图
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/22127203/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to see laravel view without php Artisan serve
提问by Asif
How can I see the Laravel
view without an artisan command CLI
. I don't have CLI
from my hosting provider, I only have access to FTP
, to run Laravel
I have to use this command in CLI
:
Laravel
如果没有工匠命令,我怎么能看到视图CLI
。我没有CLI
从我的托管服务提供商那里获得,我只能访问FTP
,要运行Laravel
我必须在以下位置使用此命令CLI
:
php artisan serve --port=8080 --host=0.0.0.0
How can I get the view without this command?
如果没有此命令,我如何获得视图?
Thanks.
谢谢。
回答by Bram
php artisan serve
is notment for use in production environments because it uses PHP5 build in webserver. If you're with a hosting provider, they probably run Apache and you can just serve your app via Apache.
php artisan serve
是不是精神疾病在生产环境中使用,因为它在Web服务器使用PHP5的构建。如果您与托管服务提供商合作,他们可能运行 Apache,您可以通过 Apache 为您的应用程序提供服务。
Have a look at the documentation on php.netif you want to know more about the build in webserver.
如果您想了解有关 Web 服务器构建的更多信息,请查看php.net上的文档。
PHP applications will stall if a request is blocked.
This web server was designed to aid application development. It may also be useful for testing purposes or for application demonstrations that are run in controlled environments. It is not intended to be a full-featured web server. It should not be used on a public network.
如果请求被阻止,PHP 应用程序将停止。
此 Web 服务器旨在帮助开发应用程序。它也可用于测试目的或在受控环境中运行的应用程序演示。它不是一个功能齐全的网络服务器。它不应该在公共网络上使用。