The App Engine Go SDK includes the
goapp deploy
command for uploading your app to App Engine.
The
App Engine Go SDK
includes a second command for interacting with App Engine named
appcfg.py
. You can use this command to upload new versions of the code, configuration and static files for your app to App Engine. You can also use the command to manage datastore indexes and download log data.
Note: If you created your project using the Google Cloud Console, your project has a title and an ID. In the instructions that follow, the project title and ID can be used wherever an application title and ID are mentioned. They are the same thing.
- Uploading the app
- Updating indexes
- Deleting unused indexes
- Updating Task Queue configuration
- Updating the DoS protection configuration
- Managing scheduled tasks
- Downloading source code
- Downloading logs
- Uploading data
- Using an HTTP proxy
- Password-less login with OAuth2
- Command-line arguments
Uploading the app
The simplest way to upload application files is to run
goapp deploy
from within the root directory of your application. The root directory should contain the
app.yaml
file for the application.
goapp deploy
Alternatively, you can provide the location of your application's root directory as an additional argument. For help using the tool, run
goapp help deploy
for a full description of its options.
goapp deploy
wraps the
appcfg.py
python tool provided in the SDK. You can also invoke this tool directly if you need greater control over the deployment:
appcfg.py update myapp/
Like
goapp deploy
,
appcfg.py
gets the application ID from the
app.yaml
file, and prompts you for the email address and password of your Google account. After successfully signing in with your account,
appcfg.py
stores a "cookie" so that it does not need to prompt for a password on subsequent attempts.