instikiを試す

なんだかんだ言って試すことにする。

  • instikiをダウンロードして解凍、Aptana IDEディレクトリに放り込む
  • 「instiki」プロジェクトを作成する
database.yml

親切にもサンプルがあった。

mysql_example:
adapter: mysql
database: instiki_development
username: root
password:
socket: /path/to/your/mysql.sock

これを加工する

development:
adapter: mysql
database: instiki_development
username: root
password: hoge
host: localhost
encoding: utf8

マイグレーション

・・・する前に、datebaseを手動作成する?履歴を残すのが好きなので
db/create.sql

CREATE DATABASE instiki_development DEFAULT CHARACTER SET utf8;

ってなものを作る。でも作れない・・・ので、MySQL Administratorで作成

C:\Aptana IDE Beta\instiki>rake migrate
(in C:/Aptana IDE Beta/instiki)
== Beta1Schema: migrating =====================================================

    • create_table("pages", {:force=>true}) -> 0.1300s
    • create_table("revisions", {:force=>true}) -> 0.1770s
    • create_table("system", {:force=>true}) -> 0.1430s
    • create_table("webs", {:force=>true}) -> 0.2360s
    • create_table("wiki_references", {:force=>true}) -> 0.1280s

== Beta1Schema: migrated (0.8190s) ============================================
== Beta2ChangesBulk: migrating ================================================

    • add_index("revisions", "page_id") -> 0.3590s
    • add_index("revisions", "created_at") -> 0.3900s
    • add_index("revisions", "author") -> 0.3410s
    • create_table("sessions", {:force=>true}) -> 0.0740s
    • add_index("sessions", "session_id") -> 0.2560s
    • create_table("wiki_files", {:force=>true}) -> 0.1830s
    • add_index("wiki_references", "page_id") -> 0.3360s
    • add_index("wiki_references", "referenced_name") -> 0.2480s

== Beta2ChangesBulk: migrated (2.2000s) =======================================
The rake task migrate has been deprecated, please use the replacement version db:migrate
C:\Aptana IDE Beta\instiki>

 

試す!

IDEの上では最初の設定ページとか表示されるがページ遷移できない。
ブラウザでアクセスしてみるが、Aptanaでサーバを起動すると動かないらしい。
 
「instiki.cmdを使って動かしてね!」と書いてあるのでAptanaは停止させて動かしてみる。

RuntimeError in WikiController#index
unknown error
This error occurred while loading the following files:
sqlite3/driver/dl/driver
sqlite3/driver/dl/api

やっぱり、SQLite3が無いとダメっぽい。

SQLite3

Windows + ruby + sqlite3 にRailsを入れるためのメモを参考にする。

>>