laravel5: chdir(): No such file or directory (errno 2)

后端 未结 9 1129
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-01 18:37

I have a problem when deploy website build on laravel 5 into VPS server, but on local machine it work fine.

My page is http://easyway.vn/ current page display blank

9条回答
  •  一向
    一向 (楼主)
    2020-12-01 19:19

    remember when you run in production the path of public change to public_html so to run again in localhost I changed into app/Providers/AppServiceProvider.php

    this:

    public function register()
        {
           $this->app->bind('path.public',function(){return'/public';});
        }
    

    to this:

    public function register()
        {
           // commented this line
        }
    

    Also after changed .env enviroment and in server.php and index.php

提交回复
热议问题