Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

555
Views
Laravel - Heroku - Docker - 404 (Not Found) js css files from public folder

I'm trying to deploy my Laravel application on Heroku but the assets that are in public folder aren't loading.

Application url: https://drinkco.herokuapp.com

I'm already trying to force https on AppServiceProvider with the code:

if(env('REDIRECT_HTTPS')) {
  $this->app['request']->server->set('HTTPS', true);
}

Procfile configuration : web: vendor/bin/heroku-php-nginx -C nginx.conf public/

The files are beeing generated by npm run prod

print screen from console error

about 4 years ago · Juan Pablo Isaza
2 answers
Answer question

0

use this one:

web: vendor/bin/heroku-php-apache2 public/
about 4 years ago · Juan Pablo Isaza Report

0

You should check to see if you included the assets folder inside of your .gitignore file.

If you do not want to track changes to this folder, which you shouldn't, you can include it back to your .gitignore file after deploying to heroku

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!