0
我是ruby app部署中的新手。Capistrano部署錯誤
我嘗試部署我的應用程序名爲「書店」上Capistrano的。 我已經上傳我的應用程序在GitHub上有以下鏈接「[email protected]:my_account_name/bookshop.git」
當我做「上限部署:設置」,我收到以下錯誤:
servers: ["localhost"]
connection failed for: localhost (Errno::ECONNREFUSED: Connection refused - connect(2))
任何幫助,將不勝感激
我 「deployment.rb」 文件:
set :application, "bookshop"
set :domain,"localhost"
server domain, :web, :app
default_run_options[:pty]= true
set :use_sudo, false
set :aplication,"localhost"
set :scm, :git
set :user, 'bookshop.com'
set :deploy_to, "/home/www/bookshop"
set :repository, "[email protected]:my_account_name/bookshop.git"
role :web, "localhost" # Your HTTP #server, Apache/etc
role :app, "localhost" # This may be the #same as your `Web` server
role :db, "localhost", :primary => true # This is where #Rails migrations will run
namespace :deploy do
task :start do ; end
task :stop do ; end
task :restart, :roles => :app, :except => { :no_release => true } do
run "#{try_sudo} touch #{File.join(current_path,'tmp','restart.txt')}"
end
end
您在機器上運行Web服務器和數據庫嗎? – Andy 2013-02-13 12:21:01
網絡服務器是M運行....我如何需要數據庫...你能告訴我所有的步驟.. – 2013-02-14 05:56:29