是否可以在 Google App Engine 上本地运行 JRuby,而无需在每次更改时重新启动服务器?

发布于 2024-08-28 15:11:12 字数 359 浏览 6 评论 0原文

不幸的是,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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

瘫痪情歌 2024-09-04 15:11:13

好吧,看来 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).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文