我按照以下鏈接的每個步驟嘗試將一個簡單的 helloworld Web 應(yīng)用程序(使用與以下鏈接完全相同的代碼)部署到谷歌云,但我部署的Web 鏈接出現(xiàn) 404 錯誤。這是app.yaml:這是index.html:html> <head> <title>Hello, world!</title> <link rel="stylesheet" type="text/css" href="/css/style.css"> </head> <body> <h1>Hello, world!</h1> <p> This is a simple static HTML file that will be served from Google App Engine. </p> </body></html>我不明白為什么會出現(xiàn) 404 錯誤,app.yaml 文件有什么問題嗎?
1 回答

守著一只汪
TA貢獻(xiàn)1872條經(jīng)驗(yàn) 獲得超4個贊
我重新創(chuàng)建了您的用例:
1.這應(yīng)該是文件夾的結(jié)構(gòu)static
:
2.復(fù)制代碼app.yaml
并在文件夾index.html
中運(yùn)行以下命令后static
:
gcloud app deploy gcloud app browse
3.前往https://PROJECT_ID.REGION_ID.r.appspot.com
- 1 回答
- 0 關(guān)注
- 130 瀏覽
添加回答
舉報
0/150
提交
取消