beast安裝

原文:http://www.olddognewtricks.co.uk/2006/09/beast.html

Beast

Beast is the spiffing new forum software from those two terribly clever chaps Josh Goebel and Rick Olson. Rick is already responsible for a very useful Ruby on Rails plug-in called acts_as_versioned and the very promising Mephisto blogweight CMS while Josh has a Rails Wiki called ServerSideWiki under his belt plus the rather useful Pastie.

The aim of Beast is to be a small and straightforward Ruby on Rails forum in less than 500 lines of code.  It's up to 432 at the moment but seems about ready to go.

So, first problem, to get Beast installed on my Windows laptop development machine.

Step 1. svn checkout http://svn.techno-weenie.net/projects/beast/trunk/

You'll probably use Tortoise of course, but you're going to need SVN in line mode shortly.

Step 2. Bring up one of those terribly old-fashioned looking command shells (Start -> Run -> cmd.exe) and go to your new beast folder. Then: rake freeze_edge (我這裏是使用的是ruby 1.8.6,Rails 1.2.3,freeze_edge已經不被推薦使用,這裏用rake rails:freeze:edge代替)

This is needed as Beast uses some of the features in the 'edge' version of Rails, i.e. the version that hasn't been formally released yet.  The main thing it appears to use is the new RESTful routing, of which more some other time.  This command will need svn to be in the path so you may need to append "C:\Program Files\Subversion\bin" to the end of the current path.

Step 3. gem install RedCloth

RedCloth is the Ruby implementation of Textile, a natty text format that can edited easily and translated to and from HTML. 

Step 4: Set up the database.  Grab 'database.example.yml' from the config folder and reformat it for whatever database you're planning to use.  Beast seems to prefer SQLite 2, so I'm going to use that.  So all I'm doing is renaming 'database.example.yml' to 'database.yml'.

If you don't already have SQLite there are two intermediate steps:

Step 4a: Download SQLite 2 from the SQLite download page and drop the exe, dll and def files in c:\ruby\bin.  Instructions of a sort are on this HowtoUseSQLite page.

Step 4b: Install the ruby library for sqlite: gem install sqlite-ruby.  Matt Griffith has made this feel a lot easier.(如果前面拷貝的是sqlite3文件,這裏也要安裝sqlite3-ruby。  gem install sqlite3-ruby

Then, at last: rake db:schema:load

Step 5: ruby script/server

This will start WEBrick on port 3000 so you can now access Beast on http://localhost:3000/.

 

最後附上sqlite的圖形化管理工具(SQLite Database browser ):http://sourceforge.net/projects/sqlitebrowser/

<script src="http://feeds.feedburner.com/~s/OldDogNewTricks?i=http://www.olddognewtricks.co.uk/2006/09/beast.html" type="text/javascript"></script><script src="http://feeds.feedburner.com/~d/static/site-tracker.js" type="text/javascript" charset="utf-8"></script>
發佈了7 篇原創文章 · 獲贊 0 · 訪問量 1750
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章