Ruby on Rails 和 WebSphere 我可以同时使用两者或其中之一吗?
我读到可以在 WebSphere 中运行 Ruby on Rails,我想我可以尝试一下。如果我在 WebSphere 中的 RoR 中创建网站,但后来想通过 Apache 运行 ruby on Rails,我可以这样做吗?我想要 websphere,因为我需要它来做其他事情,但我还有另一个问题,同一个网站就足够了,但不能承担 websphere 的开销(但可能会出错)。
谢谢。
I read where you can have Ruby on Rails running in WebSphere and I think I might try it. If I make the website in RoR in WebSphere but later want to run just ruby on rails with with Apache, can I do that? I want websphere because I'll want it for other things but I have another problem where the same website will suffice but cannot take the overhead of websphere (but can ror).
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的。您可以先编写纯rails应用程序并在JRuby上运行它,然后将其转换为WAR,安装activerecord-jdbc-adapter并部署在Websphere上。这是一个很好的指南: http://www.ibm.com/ developerworks/websphere/techjournal/0801_shillington/0801_shillington.html
当您完成 websphere 后,只需将应用程序重新部署为 apache 上的纯 Rails,甚至在 mod_passenger 上部署得更好(并切换到普通数据库适配器)
Yes. You can write the pure rails app first and run it on JRuby, then convert it to WAR, install activerecord-jdbc-adapter and deploy on Websphere. Here is a nice guide: http://www.ibm.com/developerworks/websphere/techjournal/0801_shillington/0801_shillington.html
When you are done with websphere just redeploy the app as pure rails on apache or even better on mod_passenger (and switch to normal db adapter)