将静态 Web 项目部署到 google 云中
deploy static web project into google cloud
如何将静态 Web 项目部署到 google 云中,我正在使用 Eclipse 并创建了静态 Web 项目,我想将其从 Eclipse 部署到 google 云中,我创建了一个 google web 项目,但它是动态的,但我需要部署为静态 web 应用程序。有没有办法将静态 Web 应用程序部署到 google 应用引擎中?附上我的静态页面,我需要将其转换为 google 应用引擎格式
创建一个新的 google-cloud-module。将所有代码放在 src\main\webapp
文件夹中
将此添加到您的 web.xml
文件 -
<welcome-file-list>
<welcome-file>home.html</welcome-file>
</welcome-file-list>
web.xml
文件位于 webapp\WEB-INF
文件夹中。
1- 按照 https://cloud.google.com/storage/docs/website-configuration 处的指南,将 Google Cloud Storage 存储桶配置为具有域的静态网站。
2- 将您的白皮书作为对象上传到新的 Google Cloud Storage 存储桶,以便如上所述在网络上可用。
如何将静态 Web 项目部署到 google 云中,我正在使用 Eclipse 并创建了静态 Web 项目,我想将其从 Eclipse 部署到 google 云中,我创建了一个 google web 项目,但它是动态的,但我需要部署为静态 web 应用程序。有没有办法将静态 Web 应用程序部署到 google 应用引擎中?附上我的静态页面,我需要将其转换为 google 应用引擎格式
创建一个新的 google-cloud-module。将所有代码放在 src\main\webapp
文件夹中
将此添加到您的 web.xml
文件 -
<welcome-file-list>
<welcome-file>home.html</welcome-file>
</welcome-file-list>
web.xml
文件位于 webapp\WEB-INF
文件夹中。
1- 按照 https://cloud.google.com/storage/docs/website-configuration 处的指南,将 Google Cloud Storage 存储桶配置为具有域的静态网站。
2- 将您的白皮书作为对象上传到新的 Google Cloud Storage 存储桶,以便如上所述在网络上可用。