Ruby on Rails application deployment for Microsoft solutions is quite tough issue for rails developers, despite Helicon Zoo rising could solve that. However still no solution for early versions Windows OS, especially for the server older than IIS 7. This talk is regarding how to deploy rails application by setting IIS 6 as a reverse proxy server. Through handling requests and passing to rails server, the deployment for our rails application on Windows can be more easier with efficiency.
8. There's PlanA
Helicon Zoo
A repository of web frameworks and applications
for Microsoft IIS
http://www.helicontech.com/zoo/
9. There's PlanA
Helicon Zoo
A repository of web frameworks and applications
for Microsoft IIS
Butnotforthe 10years oldWindows system
10. Plan B
Setting Rails enviroment
RailsInstaller(http://railsinstaller.org)
It's simple and friendly for Microsoft users :)
11. Plan B
Setting Rails enviroment
There's a bisic rails application,
you might need to be
$ gem install bundler
$ gem install rake
$ bundle install
$ rake assets:precompile
etc...
12. Plan B
gem 'thin'
This is our rails application server,
which actually response the request.
$ thin --prefix=/yourapp -e production
14. Plan B
Reverse proxyserver - IIS6with IIRF2.1
We need something
to turn IIS6 to be a reverse proxy server
IIRF 2.1
(http://iirf.codeplex.com/releases/view/58734)
17. Plan B
Putitunder IIS 6
Put the "public" folder under IIS 6
[Setting its URI]
And adding an IIRF.ini (config), it suppports regex
18. Plan B
Putitunder IIS 6
Put the "public" folder under IIS 6
[Setting its URI]
And adding an IIRF.ini (config), it suppports regex
Example
RewriteLog AppPathlogiirf.log
ProxyPass ^/(.*)$ http://localhost:3000/$1 [I]
19. Plan B
Howeveryou geta nackedwebsite
Cause the URI path, asset pipeline can't be the
default path now.
20. Plan B
Howeveryou geta nackedwebsite
Cause the URI path, asset pipeline can't be the
default path now.
Solution
Also put the "assets" folder under IIS 6
Original: http://domain
New: http://domain/URI