<< Back
Next >>

環境構築 その8 Typoのインストール

2007-08-18 10:05 JST @sadayuki

Typoのtrunkからのインストール。

Technorati Tags: [[Typo|http://technorati.jp/tag/Typo" rel="tag]]今回はtrunkからなので、svn経由。


$ cd ~/Sites
$ svn co http://svn.typosphere.org/typo/trunk typo

onfig/database.ymlを適当に編集し、あわせてデータベースを作成する。
次のmigrateしようとしたら、次のエラーが出る。


$ rake migrate 
(in /Users/sadayuki/Sites/typo)
rake aborted!
no such file to load -- rcov/rcovtask
/Users/sadayuki/Sites/typo/Rakefile:10
(See full trace by running task with --trace)

ので、rcovとやらをインストール。


$ sudo gem install rcov
Password:
Need to update 25 gems from http://gems.rubyforge.org
.........................
complete
Select which gem to install for your platform (i686-darwin8.10.1)
 1. rcov 0.8.0.2 (ruby)
 2. rcov 0.8.0.2 (mswin32)
 3. rcov 0.8.0.1 (mswin32)
 4. rcov 0.8.0.1 (ruby)
 5. Skip this gem
 6. Cancel installation
> 1
Building native extensions.  This could take a while...
Successfully installed rcov-0.8.0.2
Installing ri documentation for rcov-0.8.0.2...
Installing RDoc documentation for rcov-0.8.0.2...

、migrateして起動。


$ rake migrate
$ rake environment RAILS_ENV=production migrate
$ mongrel_rails start -e production
** Starting Mongrel listening at 0.0.0.0:3000
** Starting Rails with production environment...
** Rails loaded.
** Loading any Rails specific GemPlugins
** Signals ready.  TERM => stop.  USR2 => restart.  INT => stop (no restart).
** Rails signals registered.  HUP => reload (without restart).  It might not work well.
** Mongrel available at 0.0.0.0:3000
** Use CTRL-C to stop.

ttp://localhost:3000/にアクセスすると、無事動いています。

s 環境構築-その8-typoのインストール

f markdown

u a7521333-fb9f-49ff-a1c5-3a7e469d3f9c

id: 796/459
uuid: a7521333-fb9f-49ff-a1c5-3a7e469d3f9c
tag: 環境構築 Typo
permalink: /20070818/環境構築_その8_typoのインストール
tweet:

<< Back
Next >>

Google 検索

フィード

Amazon

最近 1ヶ月の投稿

過去の投稿

Amazon アソシエイト

Google AdSense

楽天アフィリエイト