2011-06-23 21 views
6

當我嘗試啓動我的獨角獸服務器時,我得到了下一個堆棧跟蹤: 無法理解rackup文件出了什麼問題?爲什麼它不可讀?我的機架文件有什麼問題?

[email protected]:~/fatfreecrm$ /home/sites/.rvm/gems/[email protected]/bin/unicorn_rails -E -D production -c /home/sites/fatfreecrm/config/unicorn.rb 
/home/sites/.rvm/gems/[email protected]/gems/unicorn-3.7.0/lib/unicorn/configurator.rb:600:in `parse_rackup_file': rackup file (production) not readable (ArgumentError) 
    from /home/sites/.rvm/gems/[email protected]/gems/unicorn-3.7.0/lib/unicorn/configurator.rb:74:in `reload' 
    from /home/sites/.rvm/gems/[email protected]/gems/unicorn-3.7.0/lib/unicorn/configurator.rb:65:in `initialize' 
    from /home/sites/.rvm/gems/[email protected]/gems/unicorn-3.7.0/lib/unicorn/http_server.rb:102:in `new' 
    from /home/sites/.rvm/gems/[email protected]/gems/unicorn-3.7.0/lib/unicorn/http_server.rb:102:in `initialize' 
    from /home/sites/.rvm/gems/[email protected]/gems/unicorn-3.7.0/lib/unicorn.rb:30:in `new' 
    from /home/sites/.rvm/gems/[email protected]/gems/unicorn-3.7.0/lib/unicorn.rb:30:in `run' 
    from /home/sites/.rvm/gems/[email protected]/gems/unicorn-3.7.0/bin/unicorn_rails:208:in `<top (required)>' 
    from /home/sites/.rvm/gems/[email protected]/bin/unicorn_rails:19:in `load' 
    from /home/sites/.rvm/gems/[email protected]/bin/unicorn_rails:19:in `<main>' 

回答

7

問題是你的論點的順序。嘗試切換-E-D