java project deployed on Google Cloud - spring

I have deployed a java project on Google Cloud. I am using MongoDB and I have created MongoDB cluster and finished with the installation of the db. However, the db is not working.Can you guide me how to fix it?

Related

Deploy Spring Boot from Azure App Service Deployment Centre and Github

I am trying to connect Azure App Service to my Spring Boot application on Github. The applications runs fine locally. I get the following error from the app service deployment centre logs.
Azure Error
My project structure.
project structure
Thanks,
Chris

How to deploy spring boot application using couchbase on GCP

I have created a spring boot app, and using couchbase buckets as database, I want to deploy my docker image of application on Google kubernetes engine. But I don't know how to deploy the buckets on Google cloud. Please help

Deploy my spring boot application into google cloud computer engine

I got a query to ask you all. I am looking for guides that help me deploy my spring boot application on google cloud computer engine, I type in my instance IP address when I test my spring boot application I unable to access it in REST API.
May I know do you have any guides or steps for me to follow to deploy successfully in google cloud computing engine. Why do I need to deploy in computer engine is because I deployed my angular at it and I deploy it both it seems that my angular project being replaced by my spring boot application.
Codelabs GCP / Spring series has deployment tutorials:
https://codelabs.developers.google.com/spring/
GCP has some "Getting Started" tutorials you can use here:
https://cloud.google.com/java/docs/
where the specific one for deploying a java app to GCE is here:
https://cloud.google.com/java/docs/tutorials/bookshelf-on-compute-engine
But the basic steps are as follows:
Write your Spring app
Build your Spring app
Run / test your jar locally
Push your jar to a location in Storage
Create a startup script for your GCE instance
Create a new GCE VM which uses your startup script using Console, Deployment API, or gcloud tool
After that, you need to ensure you have the proper network rules in place to be able to access your API publicly. If you do not wish to learn how to use GCE, I would suggest you look into using App Engine instead because then you do not need to learn how to deploy and instead can concentrate on your api. Here is a guide to do that

How to deploy Spring Boot (1.3.6) or any Spring Boot project (connection to cloud database) to Google App Engine?

I want to deploy spring boot application (connect to cloud sql and return result) on Google App Engine, please share what are the steps to deploy it.
You can try jenkins auto deployment feature to deploy the application on to the server
Refer this link to get more Idea on jenkins.
http://www.tutorialspoint.com/jenkins/jenkins_automated_deployment.htm
please share more info on what is the server and how do you set up connection with database for more info.

Application on Cloud Foundry

I am using Cloud Foundry and I deployed my Spring boot application on Cloud. I have bound the Mongodb Service with my application. When my application is trying to read the data from mongodb I am seeing below error.
Query failed with error code 13 and error message 'not authorized for query on cfe5cb4d-2ca8-40f3-9f83-0cc8321e8c19.ACCOUNT_DETAILS' on server IP:Port
At the same time when I am connecting to this db with application deployed on my local systems its working fine.
Please help me if I need to modify anything here in Configuration to make the application on Cloud work ?
I think you should check your VCAP_SERVICES, probably locally you are using the connection parameters directly but on Bluemix you have to use VCAP_SERVICES parsing.
Please if possible, copy and paste the code section used to connect to MongoDB.

Resources