Reputation: 41
I am using Google Cloud SDK for publishing and trying to host my first basic site. Whenever I try to deploy app, it shows error 403: appengine.applications.get permission is required. I've tried each and every thing: searched a lot but still not able to find any solution. Also after changing project name and then browsing the site, it still shows error 404 ,requested url not found on the server.
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 CODE
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/(.*)
Please help! Thanks in advance!
Upvotes: 3
Views: 2795
Reputation: 39814
Changing the project name locally to a project which doesn't exist on GAE is not gonna work - you'll get the 403 errors. The project must be visible in your developer console before you can reference it in the gcloud
commands.
From the Before you begin section in the Quickstart for Python App Engine Standard Environment:
Before running and deploying this quickstart, you must set up a Cloud Platform project for App Engine and then install the Cloud SDK:
Create a new Cloud Platform project and App Engine application using the Cloud Platform Console:
When prompted, select the region where you want your App Engine application located. After your App Engine application is created, the Dashboard opens.
Upvotes: 1