Cześć,
[code]deploy.rb
set :user, ‘test’
set :port, 9122
set :domain, “xx.xx.xx.xxx”
set :applicationdir, “/home/test/public_html/test_app”
set :use_sudo, false
set :scm, ‘git’
set :repository, “ssh://git@xx.xx.xx.xxx:9122/home/git/test/”
ssh_options[:forward_agent] = true
set :rvm_ruby_string, ENV[‘GEM_HOME’].gsub(/.*//,"")
roles (servers)
role :web, domain
role :app, domain
role :db, domain, :primary => true
deploy config
set :deploy_to, applicationdir
set :deploy_via, :remote_cache
after :deploy,‘deploy:pipeline_precompile’, ‘deploy:restart’
additional settings
default_run_options[:pty] = true # Forgo errors when deploying from windows
:use_sudo, false
Passenger
namespace :deploy do
task :start do ; end
task :stop do ; end
task :copy_database_config do
production_db_config = “/home/xxx/config/xxx.yml”
run “cp #{production_db_config} #{current_release}/config/database.yml”
puts "replaced database.yml with live copy"
end
task :pipeline_precompile do
run “cd #{release_path}; RAILS_ENV=production bundle exec rake assets:precompile”
end
task :foto_symlink do
run “rm -rf #{release_path}/public/assets/photo”
run "ln -nfs #{shared_path}/photo #{release_path}/public/assets/ "
end
task :restart, :roles => :app, :except => { :no_release => true } do
run “touch #{File.join(current_path,‘tmp’,‘restart.txt’)}”
end
end[/code]
i dostaję taki błąd :
[xx.xx.x.xxx :: out] Permission denied (publickey,keyboard-interactive).
[xx.xx.x.xxx :: out] fatal: The remote end hung up unexpectedly
Do konta git mam wymienione klucze ssh laptop/serwer
do konta test nie ale jak loguje się przez ssh wszystko działa więc hasło jest na 100% poprawne