techyad's avatar

Manifast.json does not exists

Hello everyone. I am using Laravel 10 and tend to publish the site on production server. i ran the yarn production and put the assets in the public_html folder in server. i also put this code in index and AppServiceProvider

at AppServiceProvider:

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

at public_html/index.phhp

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

but i am getting the error

Mix manifest not found at: /home/username/project-folder/public/mix-manifest.json

my folder structure

public_html
- mix-manifest.json
- index.php
....

how can i fix this?

0 likes
1 reply
gych's avatar

Its easier to leave the settings for the public path as default and make a symlink between public and public_html

Please or to participate in this conversation.