Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

557
Vistas
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 Respuestas
Responde la pregunta

0

use this one:

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

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda