Ojasvi Bhargava
Ojasvi Bhargava

Reputation: 312

404 error while hosting a static website using Google AppEngine

I am trying to follow all the steps as according to this blog here to host a static website using google app engine. The app.yaml file looks like this:

runtime: python27
api_version: 1
threadsafe: true

handlers:
- url: /
static_files: website/index.html
upload: website/index.html

- url: /
static_dir: website

Say my project ID is abcd-123. When I go to abcd-123.appspot.com, it's giving the 404 error. (Also, I am using the same folder they've provided for hosting). Please suggest what am I doing wrong?

Upvotes: 1

Views: 414

Answers (1)

Kartik Shandilya
Kartik Shandilya

Reputation: 3924

Make sure that you have a website folder, and inside of it, you have index.html file, along with a self created app.yaml file. Also make sure that you mention your project id while running the set project command and not project name!

Upvotes: 2

Related Questions