1
I 설치 gitosis있는 서버를 요청 (냠 gitosis (에 CentOS 6.2)를 설치) 및 다음과 같이 내 deploy.rb를 구성 : 나는 시작하면힘내 capifony에서 Gitosis에 암호를
set :application, "uda"
set :domain, "10.0.0.59"
set :deploy_to, "/var/www/html/"
set :app_path, "app"
set :user, "root"
set :use_sudo, false
#default_run_options[:pty] = true
ssh_options[:port] = 22
set :php_bin, "/usr/bin/php"
set :repository, "[email protected]:uda.git"
set :scm, :git
set :branch, "master"
role :web, domain # Your HTTP server, Apache/etc
role :app, domain # This may be the same as your `Web` server
role :db, domain, :primary => true # This is where Rails migrations will run
set :update_vendors, true
set :keep_releases, 5
#
# ssh_options[:forward_agent] = true
# set :model_manager, "doctrine"
set :shared_files, ["app/config/parameters.ini"]
set :shared_children, [app_path + "/logs", web_path + "/uploads", "vendor"]
는 그 캡 배포는 요청과 함께 암호. Gitosis에는 암호가 없으므로 루트 암호를 묻는 것이 좋습니다. 나는 ssh를 통해 내 서버에 연결하고
[email protected] ~]# git ls-remote [email protected]:uda.git master
[email protected]'s password:
그것은 암호를 묻는 keekps ...
어떤 도움이나 단서를 실행하는 경우,
==> cap deploy
* executing `deploy'
* executing `deploy:update'
** transaction: start
* executing `deploy:update_code'
executing locally: "git ls-remote [email protected]:uda.git master"
/Users/gitek/.ssh/config line 2: garbage at end of line; "#".
fatal: The remote end hung up unexpectedly
*** [deploy:update_code] rolling back
* executing "rm -rf /var/www/html/releases/20120126081107; true"
servers: ["gureak-akademi.grupogureak.com"]
Password:
[gureak-akademi.grupogureak.com] executing command
command finished in 58ms
Command git ls-remote [email protected]:uda.git master returned status code 32768
어쨌든 : 미안이 점점?