ChinaUnix.net
相关文章推荐:

passenger sinatra

本帖最后由 中关村村草 于 2011-02-23 10:09 编辑 sinatra分析 备注: 本文是基于sinatra1.0版本,在线文档: sinatra 分析 1.sinatra简介 sinatra is a DSL for quickly creating web applications in Ruby with minimal。 Fewer classes, less inheritance controller object mapping & routes vs. URLs---Dont's fear the URLs Exposed Simplicity instead of hidden complexity Small things, loosely joined, writt...

by 中关村村草 - Ruby - 2011-08-31 08:45:46 阅读(7422) 回复(12)

Rubysinatra

相关讨论

tar xzvf passenger-2.2.4.tar.gz cd passenger-2.2.4/bin ./passenger-install-nginx-module Checking for required software... * GNU C++ compiler... found at /usr/bin/g++ * Ruby development headers... found * OpenSSL support for Ruby... not found * RubyGems... found * Rake... found at /usr/local/ruby/bin/rake * rack... found * OpenSSL development headers... not found * Zlib development ...

by charleslee216 - Ruby - 2010-09-18 05:58:24 阅读(3580) 回复(2)

本帖最后由 Sevk 于 2013-03-12 20:42 编辑 [code] #s1: 原字符串 #s2: 新字符串 def rsed(s1 = ':DoNotReverseLookup => nil,', s2 = ':DoNotReverseLookup =>true,') size = s1.bytesize all = ENV['PATH'].split(/;/) | $: all.each{|x| #搜索webrick config.rb fn=File.join(x,'/webrick/config.rb') if File.exist?(fn) p fn #读写方式打开文件 f=File.new(fn,'...

by Sevk - Ruby - 2012-03-01 12:38:49 阅读(1827) 回复(0)

安装nginx时 ./configure --user=www -group=www --prefix=/usr/local/webserver/nginx --with-http_stub_status_module --with-http_ssl_module 加上--add-module 参数为什么不可以执行 求这参数应加在哪个位置

by feifeixu - Linux新手园地 - 2011-04-08 12:36:41 阅读(1837) 回复(9)

Gentos5.5 下部署Nginx+passenger 的方法 做nginx正常 到了passenger就不知怎么做了!网上资料也看不懂 跟他们说的去做多没有成功 哪位有高手大虾指点一二

by feifeixu - Linux新手园地 - 2011-04-18 16:50:51 阅读(4452) 回复(17)

mod_rails是赖洪礼和他的团队开发的一种基于apache module机制的RoR部署运行方式。这种方式可以充分利用apache的功能,提供了基于apache的比较好的RoR性能,而且无需烦琐的部署方式。根据作者的评测,mod_rails的性能略微超过了mongrel和thin,是一种相当快的运行方式。

by changchun_li - Ruby - 2008-05-19 12:38:38 阅读(4068) 回复(3)

一个基于sinatra的小程序 前些天有一个需求,需要写一个小程序来收集用户的Email,非常的简单: 1.一个用户输入Email的界面 2.提交Email表单后,提示用户已经记录了他/她的Email,然后跳转到首页. 这是一个简单得不能再简单的小功能了,但是由于这个功能是要求放在一个独立的服务器上的,跟现有的项目也毫不相干的,我并不想在现有的Rails项目中增加这个功能.我首先想到的是新建一个Rails项目实现这个功能,动手之前我又犹豫了,这么一...

Ruby

by 中关村村草 - Ruby - 2011-04-14 14:38:25 阅读(2692) 回复(1)

在linux平台,使用capistrano, rvm, passenger来部署 rails 项目 1)安装capistrano, rvm, passenger 1.rvm的安装:可以参考(http://beginrescueend.com/rvm/install/ ) 安装给单个用户: 1. bash < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer ) 如果你遇到无法安装,或者抱怨没有证书,像是下面的错误信息: 1. curl: (60) SSL certificate problem, verify t...

by feiyang10086 - Ruby - 2012-02-19 15:56:09 阅读(2010) 回复(1)

Hi, 大家好, 我用passsenger在apache2上部署有关ruby的应用, 配置是这样 passengerRuby /usr/bin/ruby passengerRoot /usr passengerMaxPoolSize 10 ServerName m.local DocumentRoot /home/dengx/m passengerRoot 这个根目录在apache2启动时, 在log里我看到是 /usr/lib/passenger/passenger-spaw...

by coolesting - 服务器应用 - 2011-07-03 14:47:08 阅读(1952) 回复(0)

Hi, 大家好, 我用passsenger在apache2上部署有关ruby的应用, 配置是这样 passengerRuby /usr/bin/ruby passengerRoot /usr passengerMaxPoolSize 10 ServerName m.local DocumentRoot /home/dengx/m passengerRoot 这个根目录在apache2启动时, 在log里我看到是 /usr/lib/passenger/passenger-spaw...

by coolesting - 服务器应用 - 2011-07-03 14:45:18 阅读(1770) 回复(0)