简体   繁体   English

在Clojure repl中加载码头时,如何访问App Engine管理界面

[英]How do I access the app engine admin interface when loading jetty in the Clojure repl

Is there a way to get to the admin interface if I'm not using the dev_appserver.sh script and instead loading up jetty myself? 如果我不使用dev_appserver.sh脚本,而是自己加载码头,是否有办法进入管理界面?

I'm doing this so that I can use the Clojure repl during development. 我这样做是为了在开发过程中可以使用Clojure repl。 While my application works as expected, there is nothing handling the /_ad/admin requests and so I can't get to the data store viewer or look at other admin stuff. 虽然我的应用程序可以按预期工作,但是没有任何东西可以处理/_ad/admin请求,因此我无法进入数据存储查看器或查看其他管理员内容。 Here's how I'm loading up the server in the repl: http://gist.github.com/491868 . 这是我在repl中加载服务器的方式: http : //gist.github.com/491868

I need to manually bind the handler for that route, but I'm not even sure what the handler is. 我需要为该路由手动绑定处理程序,但是我什至不确定该处理程序是什么。

There is a difference between the jetty application and the jetty library (my distinction) 码头应用程序和码头库之间有区别(我的区别)

The Jetty application knows how to read a config file, host servlets or WAR applications. Jetty应用程序知道如何读取配置文件,主机servlet或WAR应用程序。 This is similar to tomcat in that it provides you an admin interface with which you may interact with the jetty application, ie deploy applications to it. 这与tomcat相似,因为它为您提供了一个管理界面,您可以通过该界面与码头应用程序进行交互,即向其部署应用程序。

The way you are using is via the API. 您使用的方式是通过API。 In this mode you are responsible for defining routes and handlers for requests etc. This is a low-level approach suitable for simulating the Google App Engine environment (in fact, the GAE client-side mode does run on jetty). 在这种模式下,您负责为请求等定义路由和处理程序。这是一种适用于模拟Google App Engine环境的低级方法(实际上,GAE客户端模式确实在码头上运行)。 It doesn't include the admin interface you speak of since it is running in an environment (yours) with which it is unfamiliar and is not suited for. 它不包含您所说的管理界面,因为它运行在您不熟悉且不适合的环境中。

You will however be able to do anything you could do in the web interface with api calls directly. 但是,您将可以直接通过api调用在Web界面中执行任何操作。

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

相关问题 带有Django应用引擎的Django-nonrel无法访问管理界面 - Django-nonrel with django app engine cannot access the admin interface 如何从Google App Engine访问CSV数据? - How do I access CSV data from Google App Engine? 如何使用随机的非应用管理员发件人从 Google App Engine 发送 email? - How do I send email from Google App Engine with a random, non-app admin sender? 在为Google Application Engine开发应用程序时访问localhost(jetty)上的servlet日志 - Access to servlet logs on localhost (jetty) when developing app for Google Application engine App Engine本地环境上的Web2py:无法访问管理界面 - Web2py on App Engine Local Environment: Cannot access admin interface 如何在Google App Engine中停止Jetty Web服务器 - How to stop Jetty webserver in Google App Engine 如何在生产Google App引擎上访问管理员URL - How to get access to admin urls on production google app engine 导出应用引擎数据时如何排除列 - How do I exclude columns when exporting app engine data 我是否需要启用 App Engine Admin API 以进行部署? - Do I need to enable App Engine Admin API for deployment? 本地主机运行时如何解锁应用引擎数据库? - How do I unlock the app engine database when localhost runs?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM