[英]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.