简体   繁体   English

将后端服务器上传到Google App Engine

[英]Upload Backend Server to Google App Engine

I am doing Google Cloud Platform Sample Application, by following this Smashpix application Link from github 通过遵循github上的Smashpix应用程序链接,我正在做Google Cloud Platform示例应用程序

This link providing a android application that upload an image and it will autoscale the image. 此链接提供了一个可上传图像的android应用程序,它将自动缩放图像。

In that procedure, In the BackEnd Configuration part, I created Web Client ID, Service Account, Installed Application ID and Buckets for storing the image. 在该过程中,在“后端配置”部分中,我创建了Web客户端ID,服务帐户,已安装的应用程序ID和存储映像的存储桶。 But there is a line,which indicated upload the back end server to the google app engine. 但是有一行,表示将后端服务器上传到google app引擎。

  • Extract the Google Cloud Storage App Engine client dependency, src/cloudstorage/, folder into your backend server directory, [BACKEND_SERVER_CODE]/cloudstorage/ In the app.yaml file, replace [APPENGINE_ID] with your App Engine application ID application: [APPENGINE_ID] 将Google Cloud Storage App Engine客户端依赖项src / cloudstorage /文件夹提取到后端服务器目录[BACKEND_SERVER_CODE] / cloudstorage /中。在app.yaml文件中,将[APPENGINE_ID]替换为您的App Engine应用程序ID应用程序:[APPENGINE_ID]

  • In the queue.yaml file, replace [SERVICE_ACCOUNT] with the email address of the Service account queue: name: imagetasks ... acl: [SERVICE_ACCOUNT] 在queue.yaml文件中,将[SERVICE_ACCOUNT]替换为服务帐户队列的电子邮件地址:名称:imagetasks ... acl:[SERVICE_ACCOUNT]

  • In the settings.cfg file, replace the variable placeholders with your application variables 在settings.cfg文件中,将变量占位符替换为您的应用程序变量

  • MAIN_BUCKET: Primary Google Cloud Storage bucket to upload MAIN_BUCKET:要上传的主Google Cloud Storage存储桶
    original images BIT_BUCKET: Google Cloud Storage bucket to store 原始图片BIT_BUCKET:要存储的Google Cloud Storage存储桶
    processed images APP_HOSTNAME: Full App Engine hostname, [APPENGINE_ID].appspot.com 处理的图像APP_HOSTNAME:完整的App Engine主机名[APPENGINE_ID] .appspot.com

  • Upload the backend server to Google App Engine 将后端服务器上传到Google App Engine

After Some googled, There is a line appcfg backends <dir> update backend_name . appcfg backends <dir> update backend_name搜索后,有一行appcfg backends <dir> update backend_name

What can i proceed now, Please Give some suggestions. 我现在该怎么办,请提供一些建议。

It just means upload your app. 这只是意味着上传您的应用程序。 In the folder for the backend run 在用于后端运行的文件夹中

appcfg.py update . 

Don't forget the period. 不要忘记那个时期。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM