1

作为 Glide 项目部署过程的一部分(http://glide-gae.appspot.com/docs/intro第 2 部分的第 3 步),您需要使用 oauth2 进行身份验证。我的浏览器按预期弹出了令牌,但该过程没有等待我复制代码,它只是继续出现以下错误......

22:30:12.713 [DEBUG] [org.gradle.launcher.daemon.server.DaemonStateCoordinator] Daemon is busy, sleeping until state changes.
22:30:12.733 [INFO] [org.gradle.launcher.daemon.server.exec.LogToClient] About to start relaying all logs to the client via the connection.
22:30:12.734 [INFO] [org.gradle.launcher.daemon.server.exec.LogToClient] The client will now receive all logging from the daemon (pid: 12557). The daemon log file: /.gradle/daemon/1.8/daemon-12557.out.log
22:30:12.739 [DEBUG] [org.gradle.launcher.daemon.server.SynchronizedDispatchConnection] thread 14: received class org.gradle.launcher.daemon.protocol.CloseInput
22:30:12.740 [DEBUG] [org.gradle.launcher.daemon.server.DefaultDaemonConnection] Received IO message from client: CloseInput[id=069864b2-2948-4a9d-abea-0705274136a1.2]
22:30:12.741 [INFO] [org.gradle.launcher.daemon.server.exec.ForwardClientInput] Closing daemon's stdin at end of input.
22:30:12.742 [INFO] [org.gradle.launcher.daemon.server.exec.ForwardClientInput] The daemon will no longer process any standard input.
22:30:12.747 [INFO] [org.gradle.launcher.daemon.server.exec.ExecuteBuild] Executing build with daemon context: DefaultDaemonContext[uid=3901cff0-8d50-41b6-9459-e31f7b78f1e3,javaHome=/Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home,daemonRegistryDir=.gradle/daemon,pid=12557,idleTimeout=10800000,daemonOpts=-XX:MaxPermSize=256m,-Xmx512m,-Dfile.encoding=UTF-8]
Please enter code: Encountered a problem: No line found
Please see the logs [/var/folders/c8/vx2jf50j68x1z3_pysy6kxjm0000gp/T/appcfg2389447403250678065.log] for further information.
Daemon vm is shutting down... The daemon has exited normally or was terminated in response to a user interrupt.
----- End of the daemon log -----
org.gradle.tooling.GradleConnectionException: Could not execute build using Gradle       distribution 'http://services.gradle.org/distributions/gradle-1.8-bin.zip'.

我可以做些什么来部署我的应用程序?如何强制该过程等待我输入代码?

4

2 回答 2

3

如果 ( glide deploy) 不适合您,最简单的选择是将应用程序导出为标准gradle项目,然后执行gaeUpdate任务。

glide -a somedir/yourapp -o where/you/want/to/export/app export

注意最后的exportis命令,-o告诉它应该导出的位置。

然后从导出的项目运行:gradle gaeUpdate

于 2014-01-30T19:56:34.623 回答
0

一种解决方法是在 GAE build.gradle 文件中手动设置您的凭据。

更新以下文件:

/glide/install/generated/app-name/build.gradle

appcfg {

  email = ‘email-address'     
  password = ‘password'

  app {
     id = ‘app-id'
  }
}  

这意味着 __glide.groovy 文件中的值将被忽略,但至少您可以部署应用程序

于 2014-01-30T19:16:06.597 回答