jasagiri @ ウィキ

rubywaves動作(boot)

最終更新:

jasagiri

- view
管理者のみ編集可
コマンドプロンプト:
cd <app-root>
waves server

<waves-root>/bin/waves:
gem設定

<waves-root>/lib/waves.rb:
WAVES ライブラリ読み込み

<waves-root>/bin/waves:
引数処理

<waves-root>/lib/commands/server:
require 'choice'
require 'runtime/server'
 Waves::Server.run( Choice.choices )

<waves-root>/lib/runtime/server.rb:
 class Server < Worker

<waves-root>/lib/runtime/worker.rb:
<app-root>/startup.rb読み込み
def start
 ログ設定
 start_tasks.join

<waves-root>/lib/runtime/server.rb:
   def start_tasks
     @server = config.server.new( application, host, port )
  def application ; @app ||= config.application.to_app ; end
  def port ; @port ||= options[:port] or config.port ; end
  def host ; @host ||= options[:host] or config.host ; end

古い情報:rubywaves動作
記事メニュー
目安箱バナー