How to see laravel view without php Artisan serve

孤街醉人 提交于 2019-12-21 05:45:13

问题


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?

Thanks.


回答1:


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.

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

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.



来源:https://stackoverflow.com/questions/22127203/how-to-see-laravel-view-without-php-artisan-serve

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!