Ruby on Rails和WebSphere我可以两者兼而有之吗? [英] Ruby on Rails and WebSphere Can I have both and either?
问题描述
我读到可以在WebSphere中运行Ruby on Rails的地方,我想我可以尝试一下.如果我在WebSphere的RoR中创建网站,但后来又想与Apache一起在ruby上运行,我可以这样做吗?我想要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).
谢谢.
推荐答案
是.您可以先编写pure rails应用程序,然后在JRuby上运行它,然后将其转换为WAR,安装activerecord-jdbc-adapter并在Websphere上进行部署.这是一个很好的指南: http://www.ibm.com/developerworks/websphere/techjournal/0801_shillington/0801_shillington.html
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
使用完Websphere后,只需将应用程序重新部署为apache上的纯Rails,或者甚至更好地重新部署到mod_passenger上(并切换到普通的数据库适配器)
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)
这篇关于Ruby on Rails和WebSphere我可以两者兼而有之吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!