如何在没有PHP Artisan服务的情况下查看laravel视图 [英] How to see laravel view without php Artisan serve

查看:60
本文介绍了如何在没有PHP Artisan服务的情况下查看laravel视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在没有工匠命令CLI的情况下查看Laravel视图.我没有托管服务提供商提供的CLI,我只能访问FTP,要运行Laravel,我必须在CLI中使用此命令:

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:

php artisan serve --port=8080 --host=0.0.0.0

没有此命令如何获取视图?

How can I get the view without this command?

谢谢.

推荐答案

php artisan serve不能用于生产环境,因为它使用Web服务器中的PHP5构建.如果您与托管服务提供商合作,他们可能会运行Apache,而您只能通过Apache服务您的应用程序.

php artisan serve is not ment 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.net上的文档,请参阅有关在Web服务器中构建的更多信息.

Have a look at the documentation on php.net if you want to know more about the build in webserver.

如果请求被阻止,PHP应用程序将停止运行.

此Web服务器旨在帮助应用程序开发.对于测试目的或在受控环境中运行的应用程序演示,它也可能很有用.它并非旨在成为功能齐全的Web服务器.不应在公共网络上使用它.

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 Artisan服务的情况下查看laravel视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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