`
yawl
  • 浏览: 59350 次
最近访客 更多访客>>
社区版块
存档分类
最新评论

rails application和web server

阅读更多

部署到apache/lighthttpd的rails application用到了的web server的URL rewrite功能.在rails application的'public'目录下有一个配置文件.htaccess.其中有一句:

RewriteRule ^(.*)$ dispatch.cgi [QSA,L]

就是当web服务器收到一个类似".../receipt/list"这样的请求的时候,由于上面的RewriteRule就把这个请求交给了rails(dispatch.cgi,也在'public'目录下),然后就是利用rails自己的route模块找相应的controller了.

对xruby而言,我们应该可以写一个简单的servlet,将请求从J2EE服务器传递给rails.

 

 

 

 

分享到:
评论

相关推荐

    Wrox.Professional.Ruby.on.Rails.Feb.2008

    You ’ ve read the basic book, and now you ’ ve been asked to implement a real, live, web application. Suddenly you have all sorts of questions that weren ’ t covered in the introductory ...

    Ruby-極光Rails5專屬伺服器安裝包

    Easy Deploy Rails 5 Application Server ( Nginx 1.10、Passenger 5、Ruby 2.3.1 ) ; 快速部署 Rails 5 伺服器

    Deploying.with.JRuby.9k.Deliver.Scalable.Web.Apps.Using.JVM

    Explore common deployment scenarios, including consolidating an MRI-based Ruby deployment onto a single JVM process and porting a Rails application to JRuby, getting it into production, and keeping ...

    Programming.Web.Applications.with.Node.Express.and.Pug

    Developers of web applications who come from Java/J2EE, ASP.NET, PHP, Ruby on Rails and want to explore the capabilities of JavaScript based server apps. It’s suitable for beginners that have a basic...

    enterprise_rails.pdf

    “This Rails Application Is the Only Application on Earth” 43 Sit Atop the Shoulders of Giants 43 Choosing the Right RDBMS 44 A Note on Migrations 44 Dispelling Myths 46 Operations and Reporting 47 5...

    rails-address-book:Rails中的Account PM应用程序

    自述文件 X__O \ (\( \/ ` \, Rails地址簿,作者:Freddy Silber ... 运行rails s或rails server以启动服务器进行开发 在浏览器中,输入正在运行的服务器的URL(在命令行中)。 即本地主机:300 这将在您的W

    Take.My.Money.Accepting.Payments.on.the.Web.1680501992

    The code in this book works with Ruby 2.3.1 and Rails 5, though nearly all of the code will run with earlier versions of Ruby and Rails. Table of Contents Chapter 1. Not Taking Payments on the Web ...

    RESTful Web Services.rar

    del.icio.us: The Sample Application 26 Making the Request: HTTP Libraries 29 Processing the Response: XML Parsers 38 JSON Parsers: Handling Serialized Data 44 Clients Made Easy with WADL 47 3. ...

    薄:非常快速且简单的Ruby Web服务器

    小型快速的Ruby Web服务器 安装 gem install thin 或添加thin到您的Gemfile : gem 'thin' 用法 + thin +脚本提供了一种启动Rack应用程序的简便方法: thin start 浏览example目录以获取示例应用程序。 与Rails ...

    Advanced Flex 3 2008

    the help of two fully functional case studies that include Apache Struts and Ruby on Rails applications, respectively. Chapter 12: Sculpting Interactive Business Intelligence Interfaces Business ...

    IVY-DEMO1:这是我在过去24小时内完成的演示项目

    依存关系Ruby 2.4.2 Rails 5.1.4 PostgreSQL纱Web打包器ReactJS 雷迪斯幻影设置项目使用bundle install和yarn install 将config/application.example.yml复制到config/application.yml 使用rails db:setup设置数据库...

    检查器

    自述文件 アプリケーション名 CHECKER(冷蔵库管理アプリ) 本番环境 网址: : ゲスト用の简単ログイン机能を搭载しております。... Application Server:Unicorn  テスト:Rspec, rubocop  URL

    敏捷项目:由Flatirons School支持的Javascript + Rails API敏捷项目。 用于个人任务管理的基本看板

    敏捷项目由Flatirons School支持的Javascript + Rails API敏捷项目演示视频: : 什么一个用于个人任务管理和组织任务的简单看板入门cd到rails后端文件夹并运行rails s来启动Rails服务器在单独的终端窗口中,cd到...

    Ebooks For Dummies Collection

    Office 2003 Application Development AIO Desk Reference For Dummies.pdf Office 2003 For Dummies Timesaving Techniques For Dummies 2004.pdf Office 2007 AIO Desk Reference For Dummies Jan 2007.pdf Office...

    Wrox.Professional.jQuery 2012

    Experienced server-side web application developers looking to move into the client-side using the world’s most popular front-end library Experienced JavaScript programmers looking to ramp up quickly ...

    Knockout API 中文版

    Can be added on top of your existing web application - without requiring major architectural changes 简洁的 - Gzip之前大约25kb Compact - around 13kb after gzipping 兼容任何主流浏览器 - (IE 6+、Fire...

    db2数据库入门教程(官方中文版)

    1.9.5 WebSphere Application Server – Community Edition............................................18 第 2章 – DB2相关特性和产品.........................................................................

    db2数据库入门官方教程(中文版)

    1.9.5 WebSphere Application Server – Community Edition............................................18 第 2章 – DB2相关特性和产品.........................................................................

Global site tag (gtag.js) - Google Analytics