-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Heroku generator update. #23686
Comments
I'll see if I can bribe @deepu105 into helping me with this next week when we're together at Devoxx Belgium. 😉 |
I haven't used Heroku in a loooong time. I'll check it out this weekend and
see what I can do
…On Fri, 29 Sept 2023, 6:42 pm Matt Raible, ***@***.***> wrote:
I'll see if I can bribe @deepu105 <https://github.com/deepu105> into
helping me with this next week when we're together at Devoxx Belgium. 😉
—
Reply to this email directly, view it on GitHub
<#23686 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAIOKFYAV6FFYQ3NZ3P5QPTX4327PANCNFSM6AAAAAA5MUTCTQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@mshima Do you have an example of these refactorings in another sub-generator? Otherwise, I'll just be doing a find-and-replace and hoping things work. It looks like tests will need to change too, since there's code like this: beforeEach(() => {
stub = sinon.stub(ChildProcess, 'exec');
stub.withArgs('heroku --version').yields(false);
stub.withArgs('heroku plugins').yields(false, 'heroku-cli-deploy');
stub.withArgs('git init').yields([false, '', '']);
});
afterEach(() => {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
(ChildProcess.exec as any).restore();
}); |
You can see spawnMocks here: To simulate spawn return create a sinon stub:
note that and inject:
|
Is there microservice stack support? |
@mshima There isn't support for deploying a whole microservices stack, but there is support for individual apps. @jdubois published a tutorial on Heroku's blog in 2016 that shows how to do it. |
Overview of the feature request
There is some discussion about heroku generator future at #19551.
A proposal to drop it was done at #19112.
@mraible wants to keep support for it #19112 (comment).
And following the comment I agree we should keep it, because old tutorials may be outdated but they keep around forever.
Keeping good promoting materials valid (or near) is good for JHipster.
Blueprints overrides heroku too (dotnetcore, micronaut).
Current heroku implementation is too complicated and uses outdated standards. New need to:
child_process
withthis.spawn[Command][Sync]
.run-async
withasync function
.Motivation for or Use Case
Related issues or PR
The text was updated successfully, but these errors were encountered: