Berke
Berke

Reputation: 760

Laravel 5.4 - Error after Uploading Files to Server

My project works fine in my localhost but when I upload I get the following error :

(3/3) ErrorException The Mix manifest does not exist. 

Any ideas how I can solve it? I have previously had some other errors (like welcome.blade not defined).

Upvotes: 0

Views: 1623

Answers (4)

Ric
Ric

Reputation: 3468

You need to upload your /public/mix-manifest.json file to the server. This is a small file that contain versioning information for JavaScript and CSS assets to help with cache busting. In your Blade files you can use mix('some-file.js') and so long as it’s in the mix manifest Laravel will create a URL with the a version querystring. See: https://laravel.com/docs/5.7/mix

Upvotes: 0

Md Rasel Ahmed
Md Rasel Ahmed

Reputation: 1043

You may also try as run the given command

composer update

Upvotes: 1

Mehdi Daalvand
Mehdi Daalvand

Reputation: 661

Just go to under the app/Providers, you will find your AppServiceProvider file and inside boot() method make the binding as below.

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

Upvotes: 3

Jerico Pulvera
Jerico Pulvera

Reputation: 1042

run this in your terminal

npm install

npm run dev

if in production it is

npm run production

Upvotes: 0

Related Questions