2009年7月3日金曜日

Waves チュートリアル CompactApps

英語で書かれててよくわからないけど、チュートリアルをやってみる。
CompactとClassicがあるみたいで、今回はCompactをやってみようと思います。
ちなみにClassicだとMVC形式のファイルがいろいろできるみたいです。

%waves generate --name=spit_ball --template=compact
** Waves 0.8.2 **
** Creating new Waves application ...
** Application created!

これでspit_ballというディレクトリができました。
その中を見てみるとstartup.rbというファイルがあるだけ。。コンパクトですw
内容は↓

require 'foundations/compact'

module SpitBall
include Waves::Foundations::Compact
end

とりあえず実行してみよう♪

%waves server
** Waves 0.8.2 **
I, [2009-07-03 16:48:02 #10441] INFO -- : Logger started.
I, [2009-07-03 16:48:02 #10441] INFO -- : Waves::Server starting ...
no such file to load -- ruby-debug

あら?ruby-debugをインストール?

%waves server
** Waves 0.8.2 **
I, [2009-07-03 16:48:02 #10441] INFO -- : Logger started.
I, [2009-07-03 16:48:02 #10441] INFO -- : Waves::Server starting ...
no such file to load -- ruby-debug
%gem install ruby-debug
Building native extensions. This could take a while...
Building native extensions. This could take a while...
Successfully installed columnize-0.3.0
Successfully installed linecache-0.43
Successfully installed ruby-debug-base-0.10.3
Successfully installed ruby-debug-0.10.3
4 gems installed
Installing ri documentation for columnize-0.3.0...
Installing ri documentation for linecache-0.43...
Installing ri documentation for ruby-debug-base-0.10.3...
Installing ri documentation for ruby-debug-0.10.3...
Installing RDoc documentation for columnize-0.3.0...
Installing RDoc documentation for linecache-0.43...
Installing RDoc documentation for ruby-debug-base-0.10.3...
Installing RDoc documentation for ruby-debug-0.10.3...

これでいいのかな?

%waves server
** Waves 0.8.2 **
I, [2009-07-03 17:27:21 #14447] INFO -- : Logger started.
I, [2009-07-03 17:27:21 #14447] INFO -- : Waves::Server starting ...
I, [2009-07-03 17:27:22 #14447] INFO -- : ruby-debug enabled
no such file to load -- mongrel

次はmongrelか。。。

%gem install mongrel

と、先程と同じようにインストール◎
で再度実行!

%waves server
** Waves 0.8.2 **
I, [2009-07-03 17:28:52 #14567] INFO -- : Logger started.
I, [2009-07-03 17:28:52 #14567] INFO -- : Waves::Server starting ...
I, [2009-07-03 17:28:53 #14567] INFO -- : ruby-debug enabled
I, [2009-07-03 17:28:54 #14567] INFO -- : Mongrel started on 127.0.0.1:3000.

お!これで起動したのかな?

と思ったけど。。どうやって表示したらいいのかわからないwww
↓ランキング参加中!ポチッとお願いします。
ブログランキング・にほんブログ村へ人気ブログランキングへ

0 件のコメント:

コメントを投稿