App Engine 批量加载程序
我正在尝试使用谷歌应用程序引擎的 Bulkloader,但不幸的是无法从文档中理解该做什么。它说将此部分添加到 app.yaml
内置函数中: -remote_api:
好的,我已经添加了。然后说我必须执行此命令
appcfg.py update
但我没有任何 appcfg.py 文件。执行这一行的命令是什么?
请有人告诉我我缺少什么我使用 AppEngineLauncher 将我的项目上传到服务器。我已经使用 naver 命令来更新或上传它。
提前致谢..
I am trying to use Bulkloader of google app engine but unfortunately could not understand what to do from documentation. It says add this part to app.yaml
builtins:
- remote_api: on
ok i have added. Then says that i have to execute this command
appcfg.py update
but i don't have any appcfg.py file. And also what is the command which executes this line?
Please somebody tell me what i am missing I use AppEngineLauncher to upload my project to server.. I have naver used a command to update or upload it.
Thanks in advance..
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
如果您使用的是 App Engine Launcher,只需单击“部署”按钮即可;它运行
appcfg.py update
。 appcfg 作为 SDK 的一部分安装。If you're using App Engine Launcher, simply click the Deploy button; it runs
appcfg.py update
. appcfg is installed as part of the SDK.为了全局调用它,您必须设置 python 路径以包含 google appengine 库,或者从其确切位置调用它,
其中 ~ 代表您的主文件夹。
In order to call it globally you must set the python path to include google appengine library, or call it from its excact location
where ~ stands for you home folder.
对于使用 Java GAE SDK 的用户,它附带了 appcfg.sh,但不支持 apppcfg.py 的全部功能。您还需要安装 Python GAELauncher。在 Mac 上,它将 appcfg.py 安装在 /usr/local/bin 中。
仅使用本地数据存储区,我没有 app.yaml,也不需要按照 上传数据 GAE 文档。只需使用 RemoteApiServlet 更新 web.xml 即可。
主要问题是连接到本地数据时出现身份验证错误店铺。它可能特定于 Mac,并且该线程中提到的 Charles 代理工作同样对我有用。我确实必须修改默认代理端口 8888 以避免与我的应用程序发生冲突。解决方法很繁琐,而且 Charles 的试用版有一些限制,例如 30 分钟后关闭。
For those using the the Java GAE SDK, it comes wtih appcfg.sh, but doesn't support full features of apppcfg.py. You need to also install the Python GAELauncher. On Mac, it installs appcfg.py in /usr/local/bin.
Working only with my local datastore, I did not have an app.yaml, nor did I need to update it as per the uploading data GAE documentation. Just needed to update the web.xml with the RemoteApiServlet.
Main gotcha is the Authentication error while connecting to the local data store. It may be specific to Mac and the Charles proxy work around mentioned in that thread likewise worked for me. I did have to modify the default proxy port from 8888 to avoid conflict with my app. The workaround is tedious and the trial version of Charles comes with limitations such as shutdown after 30 minutes.
要使用主数据库进行开发,首先从应用程序引擎下载它:
它将要求提供电子邮件和密码(使用您的谷歌登录详细信息)。
上传到开发环境,请确保remote_api是
在 app.yaml 中启用
https://developers.google.com/appengine/docs/python/tools /uploadingdata#Setting_Up_remote_api
然后运行:
这次是电子邮件,将其留空并按 Enter 键。
To use the main database for development, first download it from app engine:
It will ask for an email and password (use your google login details).
To upload it to the development environment, make sure remote_api is
enabled in app.yaml
https://developers.google.com/appengine/docs/python/tools/uploadingdata#Setting_Up_remote_api
Then run:
This time for the email, just leave it blank and hit enter.