'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
Solution 1:[1]
use this one:
web: vendor/bin/heroku-php-apache2 public/
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | a bcd |