1
我試圖按照this guide在ubuntu(12.10)上使用nginx,unicorn和capistrano設置rails棧。我決定使用RVM進行ruby安裝。capistrano部署 - 基本命令失敗
我至今裝什麼:
- 所有依賴庫(ImageMagick的,混帳,MySQL的服務器等)
- nginx的(1.2.1)
- RVM(1.17)和紅寶石( 1.9.2)
- 寶石:導軌(3.1.6),麒麟(4.4.0),Capistrano的(2.13.5),...
在本地,我進入
$ capify .
奏效(在頂部提到的部署指南,其第8頁)
但我被困在接下來的部分「帽子部署:安裝」(上指導,第12頁) :
$ cap deploy:setup
/Users/chuck/.rvm/gems/[email protected]/gems/capistrano-2.13.5/lib/capistrano/configuration/variables.rb:26:in `set': you must specify exactly one of either a value or a block (ArgumentError)
from ./config/deploy.rb:4:in `load'
from /Users/chuck/.rvm/gems/[email protected]/gems/capistrano-2.13.5/lib/capistrano/configuration/loading.rb:93:in `instance_eval'
from /Users/chuck/.rvm/gems/[email protected]/gems/capistrano-2.13.5/lib/capistrano/configuration/loading.rb:93:in `load'
from /Users/chuck/.rvm/gems/[email protected]/gems/capistrano-2.13.5/lib/capistrano/configuration/loading.rb:172:in `load_from_file'
from /Users/chuck/.rvm/gems/[email protected]/gems/capistrano-2.13.5/lib/capistrano/configuration/loading.rb:89:in `load'
from /Users/chuck/.rvm/gems/[email protected]/gems/capistrano-2.13.5/lib/capistrano/configuration/loading.rb:86:in `block in load'
from /Users/chuck/.rvm/gems/[email protected]/gems/capistrano-2.13.5/lib/capistrano/configuration/loading.rb:86:in `each'
from /Users/chuck/.rvm/gems/[email protected]/gems/capistrano-2.13.5/lib/capistrano/configuration/loading.rb:86:in `load'
from Capfile:4:in `load'
from /Users/chuck/.rvm/gems/[email protected]/gems/capistrano-2.13.5/lib/capistrano/configuration/loading.rb:93:in `instance_eval'
from /Users/chuck/.rvm/gems/[email protected]/gems/capistrano-2.13.5/lib/capistrano/configuration/loading.rb:93:in `load'
from /Users/chuck/.rvm/gems/[email protected]/gems/capistrano-2.13.5/lib/capistrano/configuration/loading.rb:172:in `load_from_file'
from /Users/chuck/.rvm/gems/[email protected]/gems/capistrano-2.13.5/lib/capistrano/configuration/loading.rb:89:in `load'
from /Users/chuck/.rvm/gems/[email protected]/gems/capistrano-2.13.5/lib/capistrano/configuration/loading.rb:86:in `block in load'
from /Users/chuck/.rvm/gems/[email protected]/gems/capistrano-2.13.5/lib/capistrano/configuration/loading.rb:86:in `each'
from /Users/chuck/.rvm/gems/[email protected]/gems/capistrano-2.13.5/lib/capistrano/configuration/loading.rb:86:in `load'
from /Users/chuck/.rvm/gems/[email protected]/gems/capistrano-2.13.5/lib/capistrano/cli/execute.rb:65:in `block in load_recipes'
from /Users/chuck/.rvm/gems/[email protected]/gems/capistrano-2.13.5/lib/capistrano/cli/execute.rb:65:in `each'
from /Users/chuck/.rvm/gems/[email protected]/gems/capistrano-2.13.5/lib/capistrano/cli/execute.rb:65:in `load_recipes'
from /Users/chuck/.rvm/gems/[email protected]/gems/capistrano-2.13.5/lib/capistrano/cli/execute.rb:31:in `execute!'
from /Users/chuck/.rvm/gems/[email protected]/gems/capistrano-2.13.5/lib/capistrano/cli/execute.rb:14:in `execute'
from /Users/chuck/.rvm/gems/[email protected]/gems/capistrano-2.13.5/bin/cap:4:in `<top (required)>'
from /Users/chuck/.rvm/gems/[email protected]/bin/cap:19:in `load'
from /Users/chuck/.rvm/gems/[email protected]/bin/cap:19:in `<main>'
它似乎它不依賴於部署:設置。
我嘗試了隨機其他一些Capistrano的命令,我總是得到相同的錯誤消息「您必須指定一個值或塊(引發ArgumentError)中只有一個」
任何想法?