-
Install the App Engine Python SDK. See the README file for directions. You'll need python 2.7 and [pip 1.4 or later] (https://www.pip-installer.org/en/latest/installing.html) installed too.
-
Clone this repo with
git clone https://github.com/rlonka/simple-landing-page.git
-
Install dependencies in the project's lib directory. Note: App Engine can only import libraries from inside your project directory.
cd appengine-python-flask-skeleton pip install -r requirements.txt -t lib
-
Run this project locally from the command line:
dev_appserver.py .
Visit the application https://localhost:8080
See the development server documentation for options when running dev_appserver.
To deploy the application:
-
Use the Admin Console to create a project/app id. (App id and project id are identical)
-
appcfg.py update -A <your-project-id> -V v1 .
gcloud app deploy --project [YOUR_PROJECT_ID] --version [YOUR_VERSION_ID]
If this isn't your first deployment, you will need to set the new version as the default version with
appcfg.py set_default_version -V v1 -A <your-project-id>