我正在使用Google Cloud SDK进行发布并尝试托管我的第一个基本网站 . 每当我尝试部署应用程序时,它都会显示错误403:appengine.applications.get权限是必需的 . 我已经尝试过各种各样的东西:搜索了很多,但仍然无法找到任何解决方案 . 此外,在更改项目名称然后浏览网站后,它仍然显示错误404,在服务器上找不到请求的URL .
link- udacitywork1.appspot.com
INDEX.HTML
<html>
<head>
<title>Hello, udacity!</title>
<link rel="stylesheet" type="text/css" href="/css/style.css">
</head>
<body>
<h1>Hello,Udacity!</h1>
</body>
</html>
APP.YAML代码
runtime: python27
api_version: 1
threadsafe: true
handlers:
- url: /
static_files: www/index.html
upload: www/index.html
- url: /(.*)
static_files: www/\1
upload: www/(.*)
请帮忙!提前致谢!
1 回答
将项目名称本地更改为不会收到403错误的项目 . 项目 must 在 your 开发人员控制台中可见,然后才能在
gcloud
命令中引用它 .从Quickstart for Python App Engine Standard Environment的Before you begin部分: