安装配置Jruby on Rails

1.下载并安装

 jruby 1.6.8 (ruby-1.8.7-p357) (2012-09-18 1772b40)

2.安装rake    rack (1.4.5, 1.0.1)

gem install rake

3.安装rails             rails (3.2.13, 2.3.5)

gem install rails

gem install rails -v '2.3.5'              rails3目前安装还有问题

4.安装ActiveRecord-JDBC       ActiveRecord-JDBC (0.5)

gem install ActiveRecord-JDBC

 

5.安装BlueCloth           BlueCloth (1.0.1)   和RedCloth    RedCloth (4.2.9 java)

BlueCloth和RedCloth是实现了Textile和Markdown的Gem,它们都是文本标记格式,可以在不使用HTML的情况下书写漂亮的文本

gem install BlueCloth

gem install RedCloth

6.安装Facets

Rails在标准库的基础上增加了很多小的实用程序。它们一般在ActiveSupport名为核心扩展的部分里。在里面可以找到很有用的 Symbol#to_proc(在附录A中有更多关于它的信息),还有很多让你的Ruby代码更易读的东西,比如用4.hours + 20.minutes来代替4*3600 + 20*60。你能在ActiveSupport中找到大多数实用程序,而在Facets里,你会发现很多没有被放入Rails的东西。Facets是一个 实用程序的集合,其中有小的程序也有大的程序,它们都能被独立使用

gem install facets

7.安装Mongrel                mongrel (1.1.5 java)

gem install mongrel

8.安装mongrel_jcluster                  mongrel_jcluster (0.0.1)

gem install mongrel_jcluster

9.创建Rails程序

找一个准备存放程序的目录,执行:

rails myproject_name

10.启动mongrel,运行rails程序

cd myproject_name

jruby script\server                 默认端口3000    打开连接:http://localhost:3000

jruby script\server -p 3006    指定端口3006    打开连接:http://localhost:3006

 

其他:

actionmailer (3.2.13, 2.3.5)
actionpack (3.2.13, 2.3.5)
activemodel (3.2.13)
activerecord (3.2.13, 2.3.5)
ActiveRecord-JDBC (0.5)
activerecord-jdbc-adapter (1.2.9)
activerecord-jdbcsqlite3-adapter (1.2.9)
activeresource (3.2.13, 2.3.5)
activesupport (3.2.13, 2.3.5)
arel (3.0.2)
BlueCloth (1.0.1)
bouncy-castle-java (1.5.0147)
builder (3.0.4)
bundler (1.3.5)
coffee-rails (3.2.2)
coffee-script (2.2.0)
coffee-script-source (1.6.2)
erubis (2.7.0)
execjs (1.4.0)
facets (2.9.3)
gem_plugin (0.2.3)
hike (1.2.2)
i18n (0.6.1)
jdbc-sqlite3 (3.7.2.1)
journey (1.0.4)
jquery-rails (3.0.0)
jruby-openssl (0.8.8)
jruby-win32ole (0.8.5)
json (1.8.0 java)
mail (2.5.4)
mime-types (1.23)
mongrel (1.1.5 java)
mongrel_jcluster (0.0.1)
multi_json (1.7.5)
polyglot (0.3.3)
rack (1.4.5, 1.0.1)
rack-cache (1.2)
rack-ssl (1.3.3)
rack-test (0.6.2)
rails (3.2.13, 2.3.5)
railties (3.2.13)
rake (10.0.4, 0.8.7)
rdoc (3.12.2)
rdoc-data (3.12)
RedCloth (4.2.9 java)
sass (3.2.9)
sass-rails (3.2.6)
sources (0.0.1)
sprockets (2.2.2)
therubyrhino (2.0.2)
therubyrhino_jar (1.7.4)
thor (0.18.1)
tilt (1.4.1)
treetop (1.4.12)
tzinfo (0.3.37)
uglifier (2.1.1)

posted @ 2013-06-07 22:18  dami.van  阅读(484)  评论(0编辑  收藏  举报