How to deploy your Rails application on Windows
Upcoming SlideShare
Loading in...5
×
 

How to deploy your Rails application on Windows

on

  • 829 views

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 ...

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.

Statistics

Views

Total Views
829
Views on SlideShare
808
Embed Views
21

Actions

Likes
2
Downloads
8
Comments
0

1 Embed 21

http://www.slideee.com 21

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

How to deploy your Rails application on Windows How to deploy your Rails application on Windows Presentation Transcript

  • RubyConf2014 LightningTalk Howto deployyour Rails application onWindows shesee
  • shesee Rails developer @ Taipei » Ruby Taiwan Community » Ruby Conf 2014 staff » Rails Girls Coach » Traffic-related engineering » 5xRuby Inc. » Optimis Corp.
  • Theysaid Rails hatesWindows View slide
  • Theysaid Rails hatesWindows True story. View slide
  • True stroy A rails application needs to be deployed on Windows server 2003
  • True stroy A rails application needs to be deployed on Windows server 2003 >> 2013.years - 2003.years => 10 years
  • Enviroment 10+years old machine » Windows server 2003 » IIS 6
  • There's PlanA Helicon Zoo A repository of web frameworks and applications for Microsoft IIS http://www.helicontech.com/zoo/
  • There's PlanA Helicon Zoo A repository of web frameworks and applications for Microsoft IIS Butnotforthe 10years oldWindows system
  • Plan B Setting Rails enviroment RailsInstaller(http://railsinstaller.org) It's simple and friendly for Microsoft users :)
  • 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...
  • Plan B gem 'thin' This is our rails application server, which actually response the request. $ thin --prefix=/yourapp -e production
  • Plan B Reverse proxyserver This is our plan: Make IIS 6 been a reverse proxy server !
  • 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)
  • Plan B Eastinstall Next, next and more next
  • Plan B Successful<3 Checkout ISAPI
  • Plan B Putitunder IIS 6 Put the "public" folder under IIS 6 [Setting its URI] And adding an IIRF.ini (config), it suppports regex
  • 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]
  • Plan B Howeveryou geta nackedwebsite Cause the URI path, asset pipeline can't be the default path now.
  • 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
  • Plan B Reviewouraction 1.Install RubyInstaller
  • Plan B Reviewouraction 1.Install RubyInstaller 2.Install gem & bundler
  • Plan B Reviewouraction 1.Install RubyInstaller 2.Install gem & bundler 3.Install IIRF 2.1
  • Plan B Reviewouraction 1.Install RubyInstaller 2.Install gem & bundler 3.Install IIRF 2.1 4.Put on IIS
  • Plan B Reviewouraction 1.Install RubyInstaller 2.Install gem & bundler 3.Install IIRF 2.1 4.Put on IIS 5.Add public/iirf.ini
  • Youjustneedto click "next"
  • Thanks. Downloadthis slide http://carolHsu/rubyconf2014LT