是否可以在 Google App Engine 上本地运行 JRuby,而无需在每次更改时重新启动服务器?
不幸的是,GAE 需要在每次代码更改时重新启动服务器。 是否可以防止它并在代码保存后立即得到反馈?
或者,我可以将 Google App Engine 的 API 导入到我的 ruby 代码中并在 Sinatra 服务器上运行吗?尝试过此操作,但在“import com.google.appengine.api”上失败(它不知道“com”是什么)。
对于 Sinatra,我使用“Rerun”( http://github.com/alexch/rerun )更改后立即重新启动服务器,等待时间最短。
谢谢。
Unfortunately, GAE requires restart of the server on each code change.
Is it possible to prevent it and have immediate feedback after code save?
Or, can I import Google App Engine's API into my ruby code and run it on Sinatra server? Tried this but it fails on "import com.google.appengine.api" (it doesn't know what 'com' is).
For Sinatra, I use "Rerun" ( http://github.com/alexch/rerun ) which restarts server immediately after a change with minimum wait.
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
尝试 http://github.com/rkh/sinatra-reloader
Try http://github.com/rkh/sinatra-reloader
好吧,看来 JRuby on Rails 不需要重新启动服务器,Sinatra 重新加载/猎枪插件对我来说效果不佳。
为了运行它,我从 http://rails-depot.appspot.com/src(来源@http://code.google.com/p/appengine -jruby/source/browse 不包含所有文件)。
OK, seems like JRuby on Rails doesn't need server restart, Sinatra reloaded/shotgun plugins didn't work well for me.
To run it I copied the files from http://rails-depot.appspot.com/src (the source @ http://code.google.com/p/appengine-jruby/source/browse did not contain all the files).