2010-11-22 25 views
1

我安装红宝石调试,当我这样做:安装红宝石调试,现在越来越“应用程序在开始就开溜......”

轨服务器-debugger

我得到:

Rails 3.0.1 application starting in bugger on .... 

为什么说鸡毛?

然后在那一行之后,我回到命令提示符,以便因某种原因停止?

去一个页面显示:

bugger database is not configured 

然后,如果我尝试做:

rails server 

它无法启动:

2010-11-22 00:42:31] INFO WEBrick 1.3.1 
[2010-11-22 00:42:31] INFO ruby 1.8.7 (2010-08-16) [i686-darwin10.4.0] 
[2010-11-22 00:42:31] WARN TCPServer Error: Address already in use - bind(2) 
Exiting 
... address already in use 

我怎么能杀的过程中,不知道如何筛选它。

回答

2

如果你想激活调试当您启动轨服务器,您需要使用-u

rails -u server 

选择它的帮助信息说明:

[[email protected] ] master % 
rails server -h      
22/11/10 09:34:49 Usage: rails server 
[mongrel, thin, etc] [options] 
    -p, --port=port     Runs Rails on the specified port. 
             Default: 3000 
    -b, --binding=ip     Binds Rails to the specified ip. 
             Default: 0.0.0.0 
    -c, --config=file    Use custom rackup configuration file 
    -d, --daemon      Make server run as a Daemon. 
    -u, --debugger     Enable ruby-debugging for the server. 
    -e, --environment=name   Specifies the environment to run this 
server under 
(test/development/production). 
             Default: development 
    -P, --pid=pid     Specifies the PID file. 
             Default: tmp/pids/server.pid 

    -h, --help      Show this help message.