Iâ€™d like your feedback and testing of a early-but-near-to-beta-quality
of IronRuby.Rack, packaged in a RubyGem with some very simple scripts to
configure rack-based applications for running on
ASP.NEThttp://www.asp.net/and deploying to
IIS http://www.iis.net/ on Windows.
First you’ll need IronRuby 1.0 for .NET
Since itâ€™s a for-the-mailing-list-only preview, I am not publishing it
rubygems.org until Iâ€™ve gotten enough of your feedback that itâ€™s ready,
youâ€™ll have to first download the gem from:
And then install it with your IronRuby installation:
D:>igem install path\to\ironruby-rack-0.0.9-universal-dotnet.gem
This gem packages up the following components:
- IronRuby.Rack.dll: integration between Rack and ASP.NET
- Cassini.exe: a open-source development-time web server
- rack2aspnet <app_path> [rails|sinatra]: takes a Rack application
enables it to run on ASP.NET
- deploy2iis <app_name> <app_path>: takes a Rack-enabled
ASP.NETapplication and deploys it to the IIS web server.
Lets take a tiny Sinatra app and deploy it to IIS. Given this app:
get ‘/’ do
Run rack2aspnet to set it up for running on ASP.NET:
D:\demo>rack2aspnet . sinatra
rack2aspnet copied IronRuby.Rack, Cassini, and your local copy of
to the “bin” directory, a config.ru for sinatra (if not present
and a web.config all pre-configured to point at your local IronRuby
Because it’s been ASP.NET-ified, it can run on any ASP.NET web-server;
gem includes Cassini.exe:
D:\demo>bin\Cassini.exe D:\demo 9202 /
Now this app can be deployed to an IIS web server with deploy2iis:
D:\demo>deploy2iis myapp d:\demo
Gives IIS_IUSRS FullControl to d:\demo
myapp has been created successfully.
myapp has been configured successfully.
Note: you’ll still have to give IIS_IUSRS read-only access to your
installation; the script will enable this in the future.
You can now navigate to the Sinatra app at http://localhost/myapp, which
will be running on IIS.
For now, just reply to the list with any major issues you find. Feel
try it with your own apps too, but make sure they run OK on IronRuby
If you find some bugs and what to take a stab at fixing them yourself,
can find the source code here: