[Ironruby-core] Preview of ironruby-rack gem

Kevin Radcliffe kevin.radcliffe at gmail.com
Wed Jul 7 13:11:59 EDT 2010


Ryan, Jimmy,

1) I hit the issue also with deploy2iis.
It looks like rack\deploy\iis.rb thinks it is setting the permissions, but
they don't actually get set.
Here is the output I got:

C:\Users\kradcliffe\jsRackTest\testPerms>deploy2iis myapp .
Gives IIS_IUSRS FullControl to C:\Users\kradcliffe\jsRackTest\testPerms

However, when I looked at the actual directory perms, IIS_IUSRS was added as
a user, but with no perms at all.
Manually setting the perms to include FullControl worked fine.

2) After that, the app pool didn't like the app because by default it went
into an older framework app pool.

3) I set it to the 4.0 app pool, but still no dice, because by default my
4.0 app pool does not allow 32 bit apps (which win32api requires)
    Updated my 4.0 app pool to enable 32-bit apps. (in a prod scenario,
probably better to have a seperate 32-bit 4.0 app pool)

    After that, the simple sample app worked properly.

Best Regards,
Kevin Radcliffe

On Tue, Jul 6, 2010 at 9:14 PM, Ryan Riley <ryan.riley at panesofglass.org>wrote:

>  This is great, Jimmy! Thanks! I tried the simple example you explain
> below, and everything worked except for deploying to IIS. Probably something
> I did or didn’t do, but it looks like IIS is looking in the wrong spot for
> my web.config file. I’ll try to dig further when I have a bit more time.
>
>
>
>
>
> Cheers,
>
> Ryan
>
>
>
> *From:* ironruby-core-bounces at rubyforge.org [mailto:
> ironruby-core-bounces at rubyforge.org] *On Behalf Of *Jimmy Schementi
> *Sent:* Friday, July 02, 2010 3:06 PM
> *To:* ironruby-core at rubyforge.org
> *Subject:* [Ironruby-core] Preview of ironruby-rack gem
>
>
>
> All,
>
> I’d like your feedback and testing of a *early-but-near-to-beta-quality* build
> of IronRuby.Rack, packaged in a RubyGem with some very simple scripts to
> configure rack-based applications for running on ASP.NET<http://www.asp.net/>and deploying to
> IIS <http://www.iis.net/> on Windows.
>
>
>
> *INSTALL*
>
>
>
> First you'll need IronRuby 1.0 for .NET 4.0<http://ironruby.codeplex.com/releases/view/25901>installed:
>
> http://ironruby.codeplex.com/releases/view/25901#DownloadId=116524
>
>
>
> Since it’s a for-the-mailing-list-only preview, I am not publishing it to
> rubygems.org until I’ve gotten enough of your feedback that it’s ready, so
> you’ll have to first download the gem from:
>
> http://jimmy.schementi.com/downloads/ironruby-rack-0.0.9-universal-dotnet.gem
>
>
>
> 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 and
>    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.
>
>  *USAGE*
>
>
>
> Lets take a tiny Sinatra app and deploy it to IIS. Given this app:
>
>
>
>    D:\>cd demo
>
>
>
> D:\>more app.rb
>
> require 'rubygems'
>
> require 'sinatra'
>
>
>
> get '/' do
>
>   'hi'
>
> end
>
>
>
> 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 IronRuby
> to the "bin" directory, a config.ru for sinatra (if not present already),
> and a web.config all pre-configured to point at your local IronRuby
> installation:
>
>    - bin\Cassini.exe
>    - bin\ir.exe
>    - bin\ir.exe.config
>    - bin\IronRuby.dll
>    - bin\IronRuby.Libraries.dll
>    - bin\IronRuby.Libraries.Yaml.dll
>    - bin\IronRuby.Rack.dll
>    - bin\Microsoft.Dynamic.dll
>    - bin\Microsoft.Scripting.dll
>    - config.ru
>    - log
>    - web.config
>
>  Because it's been ASP.NET-ified, it can run on any ASP.NET web-server;
> this 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.
>
> IIS Restarted
>
>
>
> Note: you'll still have to give IIS_IUSRS read-only access to your IronRuby
> 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.
>
>
>
> *FEEDBACK*
>
>
>
> For now, just reply to the list with any major issues you find. Feel free
> to try it with your own apps too, but make sure they run OK on IronRuby
> first.
>
>
>
> If you find some bugs and what to take a stab at fixing them yourself, you
> can find the source code here:
>
> http://github.com/jschementi/ironruby/tree/master/Hosts/IronRuby.Rack
>
>
>
>
>
> Enjoy,
>
> ~Jimmy
>
> _______________________________________________
> Ironruby-core mailing list
> Ironruby-core at rubyforge.org
> http://rubyforge.org/mailman/listinfo/ironruby-core
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20100707/3620027b/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 12353 bytes
Desc: not available
URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20100707/3620027b/attachment-0001.png>


More information about the Ironruby-core mailing list