JavaScript Required.
We're sorry, but Pega7 doesn't work without JavaScript enabled. Please enable and refresh.
<p>If you have an existing Ruby on Rails app at A Small Orange that was deployed with FastCGI, here are the steps to convert it to Passenger:</p> <p><em><strong>Note: </strong>'myapp' is used below to represent your Rails Application directory.</em></p> <ol> <li> <p>Add a route for the root of your site in '~/myapp/config/routes.rb':</p> <pre> map.root :controller => 'user', :action => 'list' </pre> </li> <li> <p>Edit '~/myapp/public/.htaccess' and comment out the CGI/FastCGI dispatcher:</p> <pre> #RewriteRule ^$ index.html [QSA] #RewriteRule ^([^.] )$ $1.html [QSA] #RewriteCond %{REQUEST_FILENAME} !-f #RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]</pre> </li> </ol> <p><br /> If your website's 'public_html' is not linked to your app (your app is in a subdirectory of 'public_html'), add this to the 'myapp/public/.htaccess.</p> <pre> RailsBaseURI /myapp</pre> <p><br /> <strong><em>That's it!</em></strong></p>