Skip to content

Launching

ryosuketc edited this page Feb 8, 2021 · 3 revisions
« back to DeveloperGuide

Here's how to launch Person Finder on your own site. (Google runs this code at http://google.org/personfinder but you can also run your own completely independent Person Finder site.)


Step 1. Get the code

Follow the steps at GettingStarted to get the code.


Step 2. Create your application on App Engine

If you're not already signed up for App Engine, go to https://appengine.google.com/ and sign up, using a Google account.

Then, at http://appengine.google.com/, click the "Create Application" button, choose an identifier for your application, and follow the instructions. In the rest of this page below, APPID represents the application identifier you chose.


Step 3. Deploy your code

Run this command in your application directory:

gcloud app deploy app/app.yaml --project --no-promote # Deploys your code to the application named

You'll be asked for your Google username and password, and in a few minutes, the current version of the code on your computer will be installed and running on Google App Engine.


Step 4. Create an instance

Run this command in your application directory:

tools/console APPID.appspot.com # Connects to the application named APPID

Person Finder can run multiple repositories (for example, if there are multiple crises, a single website running Person Finder can contain a separate database for each crisis). Choose a name for your new repostiory. For example, if you choose "abc", then your site will be available at "APPID.appspot.com/abc". At the Python prompt, type:

>>> Repo(key_name='REPO').put() # Create a repository named REPO

Step 5. Visit your new site

Visit http://APPID.appspot.com/REPO/ to see your new site in action!

Visit http://APPID.appspot.com/REPO/admin to adjust the settings for your repository.


« back to DeveloperGuide
Clone this wiki locally