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