JHipster Microservices Application deployment to CloudFoundry - jhipster

I am big fan of JHipster. I found it extremely useful in getting started with web applications development, deployment to cloud.
I have been trying to make the JHipster Microservices application work but with no luck. I followed the steps in the video tutorial from JHipster site but ran into issues.. Here's what I have tried..
1) Downloaded JHipster Registry and could deploy to CloudFoundry..
2) Created a microservice application and stuck at below message while deploying to cloudFoundry..
FAILED
Error restarting application: Start app timeout
TIP: Application must be listening on the right port. Instead of hard coding the port, use the $PORT
environment variable.
Use 'cf logs programservice --recent' for more information
Any help on this topic is highly appreciated..
Thanks in advance

I have never deployed to cloudfoundry myself but are you sure your app is correctly configured to connect to the jhipster-registry's address. As far as I know this must be done manually.
An alternative could be to use an Eureka Registry provided by Cloudfoundry itself rather than the jhipster-registry. You should really refer to the Cloudfoundry docs and the Cloudfoundry page of the JHipster website.

Related

Material-ui Official SSR example not working in production servers

I deployed the official material-ui ssr example to Microsoft Azure, it doesn't work. I also deployed it to Heroku, it still doesn't work. On my local machine and on codesandbox , everything looks good. I don't know what I'm missing.
UPDATE
You can choose docker when you create webapp services. I think it will help you solve the issue.
PRIVIOUS
I think this project has some bug in it.
You can raise a support on azure portal, or submit a issue on github.
I have try to use many ways to deploy ssr project.
Continuous deployment to Azure App Service [Failed]
FTP, then run start command. [Failed]
Use VSCode to publish. [Failed]
Paste zip file into kudu. [Failed]
After all the attempts, I guess that a certain command of the project may take up a lot of resources, so this project has potential bugs, and the azure team can assist in finding the cause of the deployment failure.
This is my error msg.

Deployed Nodejs service does not work on Azure Web App

I've created two pipelines: build and release for Nodejs app.
Here is the link to nodejs app repo: azure web service
Here is the tasks for build pipeline:
Here is the wwwroot folder structure:
So it is look like all required files are present.
Despite that, I'm constantly receiving:
You do not have permission to view this directory or page
I've tried to add web.config file, but it did not help.
I have front end application on same App service Plan and it works, so it is no way that I have bad service plan.
Do you have any suggestions?
Thanks a lot.
I was able to deploy my service only after using nodejs-docs-hello-world starter.
It is looks like web.config is a required file, btw, still did not find any meaningfull documentation for web.config.
Make sure your azure nodejs env support your js syntax (import from ...), in other case use webpack or typescript.
I'have found App Service Editor very helpful if you want to debug your code errors. See section Output.
I had a problem also with nodejs version, despite the fact I choosed node 12 tls during web app creation, I have noticed that my app used node 6 under the hood. So I changed default nodejs version to 10. See here how to do it
Also, I want to thank #Jason Pan for his help.

Deploy Cloud9 IDE to Heroku?

I"m trying to deploy a simple Node.JS app to Heroku from Cloud9, and I can't seem to be able to find the "Deploy" button to deploy it to Heroku. Is this feature present on Heroku?
http://imgur.com/mrEvDz1
In the current Cloud9 release we do not have a UI for deployment yet, but we're going to add those features soon. They have been flaky at times and we really want to offer things that work.
Until then, I'd recommend using the deployment tools straight from the command line in the Terminal - see our documentation site for details: https://docs.c9.io/deploying_via_cli.html .
Regarding Heroku, deploying via the terminal is not too difficult, although I would have preferred not to disappoint you. All steps are explained in the link below, you can start at step 3 because the Heroku tool belt should already be installed.
Refer: https://devcenter.heroku.com/articles/quickstart

With Windows Azure, can I deploy a node.js server using Dropbox?

There are several tutorials on Azure showing how to deploy a node.js server using git. Azure has a nifty feature where you can link a Dropbox folder to an Azure web site for very simple deployments. Works awesome for websites, but I was hoping it might work for node.js deployments as well.
It doesn't seem to work- the deployment process goes fine, but navigating to the URL of the node.js deployment produces this error:
The page cannot be displayed because an internal server error has occurred.
Anyone know if it's possible to deploy a node.js server to Windows Azure via Dropbox?
Many thanks-
UPDATE-
Just ran through the deployment logs and found this line:
The package.json file is not present.
The node.js application will run with the default node.js version 0.6.20.
Perhaps that it explains my problem?
from the console and folder type "npm init" to generate package.json

how to editor cloudfoundry app online?

Sometimes, we only need to change a little line, so vmc push is too slow.
Is there any NodeSJ module or service that can direct edit the code online?
Does Cloudfoundry has a dashboard?
By the way, how do you download app and log as a zip?
If you look at how vmc push works, you will know from point 11 that the application is packaged by vmc by looking at all the differences and then pushed to the server. So cloudfoundry itself does not have a code editor.
To edit your code online you can use another service like http://c9.io and follow these docs to see how to push to cloudfoundry
CloudFoundry does not have a dashboard. (as of this writing)
But there is another service based on micro cloudfoundry, called as appfog - and it has all the UI stuff + support for other platforms.
Downloading app logs can be done with the help of this answer

Resources