Skip to content
This repository has been archived by the owner on Feb 25, 2021. It is now read-only.

Deploying

Minh T. Nguyen edited this page Jul 9, 2015 · 9 revisions

How to deploy your own instance of Google Crisis Map.

Step 1: Create a new app

Go to https://console.developers.google.com/project and click "Create Project". Choose an Project ID for your application.

Step 2: Get the App Engine SDK

On the App Engine Downloads page, download and install the SDK for Python package for your platform.

Step 3: Get the code

Download the latest zip file from the Downloads folder for this project. Unzip the file.

Step 4: Deploy the code to your app

Open a terminal window and use the cd command to go into the googlecrisismap-NNN directory that was just unzipped. Then type:

appcfg.py update . -A PROJECT_ID

(Replace PROJECT_ID with your Project ID)

Step 5: Wait for indexes to build

Visit https://appengine.google.com/, select your app, and click "Datastore Indexes" on the left. Wait until all the indexes have "Serving" in the "Status" column before proceeding.

Step 6: Grant yourself administrator access

In order to create maps or allow other users to create maps, you'll need to execute some commands in the console. Type:

tools/console PROJECT_ID.appspot.com

(Replace PROJECT_ID with your Project ID)

and then log in with the e-mail address and password (possibly an Application-Specific Password) of the Google Account that you used to create the application in step 1. Once you are logged in, enter these two commands:

domains.Domain.Put('gmail.com')
Grant(users.GetForEmail('YOUR_EMAIL').id, 'DOMAIN_ADMIN', 'gmail.com')

Replace YOUR_EMAIL with the e-mail address of your Google Account.

Step 7: Try your app

To get started, go to: http://PROJECT_ID.appspot.com/.maps

(Replace PROJECT_ID with your Project ID.)

You should now be able to create, edit, and publish maps, as long as you are logged in using the same Google Account that you used in Step 6.