Generator-jhipster: Frontend is not available (behind a reverse proxy, e.g. via heroku)

Created on 5 May 2020  路  7Comments  路  Source: jhipster/generator-jhipster

Overview of the issue

The newly introduced caching configuration makes the frontend not delivered when deployed on heroku (but I guess it a more general problem).

Motivation for or Use Case

It should just work.

Reproduce the error

Generate an application (from latest master) and deploy it to heroku. You will see the failure pacman. If you disable or remove the new StaticResourcesWebConfiguration it just works fine.
The error I see in the heroku logs is a 404 when requesting the static resources.

Suggest a Fix

Not sure, disabling the StaticResourcesWebConfiguration is not good as caching will be affected.

JHipster Version(s)

Latest master

  • [x] Checking this box is mandatory (this is just to show you read everything)
area java

Most helpful comment

Just checked it with heroku and it works fine, thanks @pascalgrimaud & @monxxi

All 7 comments

need to investigate, as it works with default packaging in local
but it's broken behind a reverse proxy ?

cc @monxxi

@pascalgrimaud I guess it is something like this. Good to know it works locally (didn't test, but I thought would have been noticed). We should fix that before the release :pray:

First I thought it might be related to the cache key PR, but the e2e tests can't find the frontend too, might that be related to this one?

image

thanks @atomfrede
as JDLMS failed, it means it should be easy to reproduce the problem locally

I'm working on this with @monxxi this morning
we should have a fix for that very soon

@pascalgrimaud Awesome, thanks!

Just checked it with heroku and it works fine, thanks @pascalgrimaud & @monxxi

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tomj0101 picture tomj0101  路  3Comments

sdoxsee picture sdoxsee  路  4Comments

Steven-Garcia picture Steven-Garcia  路  3Comments

edvjacek picture edvjacek  路  3Comments

chegola picture chegola  路  4Comments