[英]How to Host my Angular 4 web App in GCP
I want to host my website through google Cloud Platform, But my code is in typescript(Angular 4). 我想通过Google Cloud Platform托管我的网站,但是我的代码是在typescript(角度4)中。 Anyone know how to host angular 4 website in GCP please suggest me
任何人都知道如何在GCP中托管angular 4网站,请建议我
install friebase-tools 安装friebase-tools
npm install -g firebase-tools
npm install -g firebase-tools
go project dir,init setting and select Hosting 进入项目目录,初始化设置并选择主机
firebase init
Firebase初始化
publish you angular web to firebase host 将您的角度网络发布到Firebase主机
firebase deploy
火力基地部署
do complete !!:) 做完!! :)
Read more at: https://firebase.google.com/docs/cli/ 要了解更多信息, 请访问: https : //firebase.google.com/docs/cli/
It would be useful if you provide more details about the website. 如果您提供有关该网站的更多详细信息,将很有用。 If it is static, you can use Google Cloud Storage .
如果它是静态的,则可以使用Google Cloud Storage 。
If it is not, you can use App Engine flexible Node.js or App Engine flexible Custom Runtime . 如果不是,则可以使用App Engine flexible Node.js或App Engine flexible自定义运行时 。 Use the Custom Runtime "to use an alternative implementation of Java, Python, Node.js, Go or write in another language".
使用“定制运行时”“使用Java,Python,Node.js,Go的替代实现或用另一种语言编写”。
In any case, I suggest you to start doing the "quickstart" to get familiarized with the solution. 无论如何,我建议您开始执行“快速入门”以熟悉该解决方案。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.