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

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

    this error appears when you rename the public folder.

    Never edit files in vendor folder. After composer update or fresh install you will lose your changes.

    A better solution is to edit bootstrap/app.php and place this snippet before the return statement.

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

提交回复
热议问题