카피 스트라 노를 설정하여 레일 애플리케이션을 배포하려고 시도한 것은 이번이 처음입니다. 로컬 컴퓨터에서 동일한 컴퓨터에 repo, web, app 및 mysql 서버가있는 원격 서버에 배포하고 있습니다. 카피스트라노로 알 수없는 사용자 'app'
*** [err :: example.com] sudo: unknown user: app
command finished
failed: "sh -c 'cd /var/www/example/current && sudo -p '\\''sudo password: '\\'' -u app nohup script/spin'" on example.com
은 내가 '응용 프로그램'사용자를 추가하기로, 또는이다 : 오전
cap deploy:start
가 그럼 난이 오류가 나는 명령에 도착 http://www.capify.org/index.php/From_The_Beginning
: 나는 통해이 거리를 따라하고 명령이 실행되는 사용자를 변경하는 방법이 있습니까? 사방이 example.com 내 서버의 호스트 이름이 모든 그냥 예제 응용 프로그램 이름입니다라고 말한다 분명히
set :application, "example"
set :repository, "[email protected]:example.git"
set :user, "trobrock"
set :branch, 'master'
set :deploy_to, "/var/www/example"
set :scm, :git
# Or: `accurev`, `bzr`, `cvs`, `darcs`, `git`, `mercurial`, `perforce`, `subversion` or `none`
role :web, "example.com" # Your HTTP server, Apache/etc
role :app, "example.com" # This may be the same as your `Web` server
role :db, "example.com", :primary => true # This is where Rails migrations will run
그리고 :
이 내 deploy.rb입니다.