如何在bluehost上搞定Ruby On Rails
Q1. Ruby程序的路径是?
A1. /usr/bin/ruby
Q2. Bluehost上面预装了哪些Ruby on Rails的Gem包?
A2. 当前有的列表如下:
actionmailer (1.2.0, 1.1.5): Service layer for easy email delivery and testing.
actionpack (1.12.0, 1.11.2): Web-flow and rendering framework putting the VC in MVC.
actionwebservice (1.1.0, 1.0.0): Web service support for Action Pack.
activerecord (1.14.0, 1.13.2): Implements the ActiveRecord pattern for ORM.
activesupport (1.3.0, 1.2.5): Support and utility classes used by the Rails framework.
fcgi (0.8.6.1) : FastCGI ruby binding.
login_generator (1.1.0): [Rails] Login generator.
mysql (2.7) : MySQL/Ruby provides the same functions for Ruby programs that the MySQL C API provides for C programs.
rails (1.1.0, 1.0.0): Web-application framework with template engine, control-flow layer, and ORM.
rake (0.7.0): Ruby based make-like utility.
sources (0.0.1): This package provides download sources for remote gem installation
BTW: 貌似可以发Ticket请求安装某个Gems,但是人家说了,保留因为某种原因不安装的权利。
Q3. 哈哈,关键问题来了,如何在Bluehost上面设置Ruby on Rails?
A3. 太长了,翻译太费劲啊,给个链接,有谁翻译了别忘了发一下链接:how to setup Ruby on Rails on bluehost.com,打不开的话直接看这个。
我的一些总结:
1、需要Bluehost的Shell Access,可以去申请(我用摄像头拍了个护照照片就搞定了,听人说诚恳点儿不用照片ID也可以)(BTW: 我试了一下直接开发以后上传,貌似也可以,别忘了替换index.html哦,否则密码会暴露的但是这样铁定暴露密码,还是用Shell只共享public目录的好)
2、不需运行“Ruby script/server”,那是为了没有配置好ROR的Apache准备的,Bluehost配置好了Apache,所以不用自己起Server了,而且据说起了也没用。
3、用ControlPanel里面的MySQLAdmin来进行数据库表的操作。
其他链接:
Bluehost的帮助信息列表
How to add MIME type and associate it with .rhtml extension:里面有直接在Bluehost shell上进行的操作
John Shea’s BlueHost Ruby on Rails Guide:有直接Remote bluehost的mysql传数据的同学可以参考一下
另外,如果你用的不是Bluehost,并且正在寻觅ROR Server的话,可以参考Ruby On Rails Web Hosting站点,上面有许多站点的资料以及ROR资料,还有个排名哦,前五名如下:
1. HostGator
2. BlueHost
3. HostMonster
4. Site5
5. DreamHost
希望对筹建ROR网站的xdjm有所帮助。
标签:[tag]Ruby, ROR, Bluehost[/tag]


