Closed mraible closed 2 months ago
Deploying ES docker should work. Not sure about it works well with the smalles dyno instances (and totally no idea about the storage part).
I didn't try creating ES in a Docker container. However, I did get things working with Elastic Cloud. I documented how to make your Heroku app work with Elastic Cloud in the JHipster Mini-Book and in https://github.com/jhipster/jhipster.github.io/pull/1247.
This issue is stale because it has been open for too long without any activity. Due to the moving nature of jhipster generated application, bugs can become invalid. If this issue still applies please comment otherwise it will be closed in 7 days
I think we'll still need this :)
Let's check if the docs for elastic cloud are still okay. If that works it seems like the best solution although it requires some manual steps.
The docs and the Elasticsearch part of the JHipster Mini-Book say you have to use an older version for Elasticsearch. We should verify that's still the case. It'd be nice if the latest version worked.
I suppose we can use the one we have for the generated docker(compose) file, which is 8.10.4
as of now.
This issue is stale because it has been open for too long without any activity. Due to the moving nature of jhipster generated application, bugs can become invalid. If this issue still applies please comment otherwise it will be closed in 7 days
Overview of the issue
I'm updating 21-Points Health as part of the JHipster Mini-Book. When I deploy to Heroku with Jenkins, it fails to work.
The generated
deployment
task is as follows:I started commenting on the old issue, but realized it's probably better to create a new one.
With JHipster v7.9.3, the workaround of downgrading Elasticsearch for Heroku only works with
git push
and fails to work when you try to use Elasticsearch:Motivation for or Use Case
I'd like to update the JHipster Mini-Book to v7 and this is a blocker.
Reproduce the error
Create an app using the following
.yo-rc.json
, deploy it to Heroku, and try to register a new user.Or, clone this repo and try to deploy it to Heroku.
Related issues
Suggest a Fix
I think there's a few options:
Personally, using the ES add-on seems like the best practice, but 67/month seems pricey for a sample app. I already pay $25/month to keep it on all the time. I'd like to document the best way to do things in the mini-book, if possible. There's a good chance this predicament and solution will be part of the book.
Deploying a Docker container to Heroku seems like an easy workaround. Here's some helpful links:
JHipster Version
JHipster configuration, a
.yo-rc.json
file generated in the root folder.yo-rc.json file
JDL for the Entity configuration(s)
entityName.json
files generated in the.jhipster
directoryJDL entity definitions
Environment and Tools
openjdk version "17.0.5" 2022-10-18 OpenJDK Runtime Environment Temurin-17.0.5+8 (build 17.0.5+8) OpenJDK 64-Bit Server VM Temurin-17.0.5+8 (build 17.0.5+8, mixed mode)
git version 2.33.0
node: v16.17.0 npm: 8.19.3
Docker version 20.10.20, build 9fdeb9c