text 将Spring-java应用程序部署到谷歌云

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了text 将Spring-java应用程序部署到谷歌云相关的知识,希望对你有一定的参考价值。

1) // frist build a "war" file in the intellij and it will be present in the target folder.
2) // add the "war" file to the cloud - project - bucket folder in the google cloud
3) // create a app.yaml file and add that file to the same location.
4) // the app the yaml file content should be different for angular and java app

***//while accessing the cloud shell please verify wether it is there in your preset project or a different project

//to change the project directory in the cloud shell.
gcloud config set project desired-project-id-here
gcloud config set project gbox-spring-2018

//the app.yaml of the java file should have
runtime: java
env: flex

// open the google cloud shell and create a directory(any related name) with the below command.  
mkdir mygbox-spring


//copy all the files from bucket to the mygbox-spring folder
gsutil rsync -r gs://spring-gbox ./mygbox-spring

//and deploy the app.yaml folder.
gcloud app deploy ~/mygbox-spring/app.yaml


//finally after deploying you will be getting a link where in you can go and call your apis.

以上是关于text 将Spring-java应用程序部署到谷歌云的主要内容,如果未能解决你的问题,请参考以下文章

如何将 nodejs 应用程序部署到谷歌云?

将 node.js 应用程序部署到谷歌云平台时找不到模块“yargs”错误

将应用程序(春季启动)部署到谷歌应用引擎时,不使用哪个 sql db?

使用 docker-compose 将 Docker 映像部署到谷歌云运行

如何使用谷歌应用引擎将 php 项目部署到谷歌云中?

在将应用程序(spring boot)部署到谷歌应用程序引擎时,没有使用sql db?