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

后端 未结 9 1137
佛祖请我去吃肉
佛祖请我去吃肉 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:36

    it means that your Laravel Application Can't Find the public folder.

    I got it to work by

    changing :

    chdir($this->laravel->publicPath());
    

    in :

    vendor/laravel/framework/src/Illuminate/Foundation/Console/ServeCommand.php

    To :

    chdir('/');
    

提交回复
热议问题