Redmine 与 IronRuby (Windows)?
有人尝试过使用 IronRuby 运行 Redmine 吗?是否可以?
Has anyone tried to run Redmine using IronRuby? Is it possible?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
有人尝试过使用 IronRuby 运行 Redmine 吗?是否可以?
Has anyone tried to run Redmine using IronRuby? Is it possible?
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(2)
我认为目前答案是否定的...做了一些谷歌搜索我发现了各种
人们询问了一些尝试和一些提出的问题......
I think the answer is NO at present... doing a bit of google searching I found various
people asking a few trying and some raising issues...
几个月前,我尝试让 Redmine 在 IronRuby 上运行,并取得了一些成功。我使用的Redmine版本是0.9.3,IronRuby版本是1.0v4,SQL Server 2005,它由IIS 6托管。实际上,要让它启动并运行需要做很多工作。我必须对一堆 Redmine 文件进行一些小的修改。我还添加了一些我的下载中不存在的文件,例如 new_rails_defaults.rb。此外,我必须从 GitHub 获取 IronRuby 源代码并对其进行轻微修改才能使 IronRack 正常工作。
为了让 IIS 工作,我必须将所有流量重定向到 .Net,以便在我创建的 Redmine IIS WebApplication 中进行处理。这是通过将应用程序扩展映射添加到“C:\Windows\Microsoft.NET\Framework\v2.0.50727aspnet_isapi.dll”来完成的,
然后我将所有流量重定向到 Web.config 文件中的 IronRack。
这使得 IIS 无法提供静态文件。为了解决这个问题,我创建了 StaticFileHttpHandler。
这也需要添加到 httpHandlers 部分。对于您希望它能够提供服务的每种静态文件类型。下面显示了提供 PNG 文件的示例。
我还需要创建一个 images_controller.rb 文件来指向静态文件。
接下来,所有 *.yml 文件都需要用百分号围绕值进行双引号。
此外,我必须注释掉 db\migrate 文件夹中数据库设置文件中的所有索引创建和删除。
总之,Redmine 可以主要与 IronRuby、IronRack、IIS 6 和 SQL Server 2005 配合使用,但也需要进行一些修改。
I attempted to get Redmine running on IronRuby with some success a few months ago. The version of Redmine I used was 0.9.3, IronRuby version was 1.0v4, SQL Server 2005 and it was hosted from IIS 6. This was actually a lot of work to get it up and running. I had to make minor modifications to a bunch of Redmine files. I also added some files that were not present in my download like new_rails_defaults.rb. Additionally, I had to get the IronRuby source from GitHub and modify it slightly to get IronRack working.
To get IIS to work I had to redirected all traffic to .Net for processing in the Redmine IIS WebApplication I created. This was done through adding an application extension mapping to "C:\Windows\Microsoft.NET\Framework\v2.0.50727aspnet_isapi.dll"
I then redirected all traffic to IronRack in my Web.config file.
This stopped IIS from being able to serve static files. To fix this I created the StaticFileHttpHandler.
This needs to be added to the httpHandlers section as well. And for every static file type you want to it to be able to serve. An example of serving a PNG file is show below.
I also needed to make an images_controller.rb file to point the static files at.
Next all *.yml files need double qoutes around values with the percent sign.
Additionally, I had to comment out all index creation and deletion in the database setup files in the db\migrate folder.
In conclusion, it is possible to get Redmine mostly working with IronRuby, IronRack, IIS 6, and SQL Server 2005 but not without some modifications.