1
에 대해 stderr 로그를 확인하는 데 실패하면서 카피 스트라 노유니콘 다시 시작 - 마스터에 geting 오류를 시작 자세한
DEBUG [aaaad896] Command: cd /home/dev/PROJECT-NAME/current && (export RAILS_ENV="production" ; ~/.rvm/bin/rvm default do bundle exec unicorn -c /home/dev/PROJECT-NAME/current/config/unicorn.rb -E deployment -D )
DEBUG [aaaad896] master failed to start, check stderr log for details
(Backtrace restricted to imported tasks)
cap aborted!
SSHKit::Runner::ExecuteError: Exception while executing as [email protected]: bundle exit status: 1
bundle stdout: Nothing written
bundle stderr: master failed to start, check stderr log for details
다른 로그와 배포.
Errno::EADDRINUSE: Address already in use - bind(2) for 0.0.0.0:8080
/home/dev/PROEJCT-NAME/shared/bundle/ruby/2.3.0/gems/unicorn-5.1.0/lib/unicorn/socket_helper.rb:149:in `bind'
unicorn.rb 파일 : unicorn.rb
deploy.rb 파일deploy.rb
기본 (의 nginx/사이트 수/기본) 파일 : default
매번 유니콘을 다시 시작하는 동안 카피 스트라 노에서이 오류가 발생했습니다. 어떻게 해결할 수 있습니까?
배포 후 코드에 몇 가지 변경 사항을 적용한 후 다시 "cap production deploy"명령을 사용하여 배포합니다. (서버가 이미 실행 중입니다.)하지만 포트가 이미 유니콘에 사용 중이기 때문에 오류가 발생합니다. 캡 제작 배포를 실행하는 동안 유니콘을 다시 시작하고 싶습니다. –
배포를 제한 한 후에 유니콘을 다시 시작할 수있는 방법에는 몇 가지 옵션이 있습니다. 당신은 그걸보기 위해 구글을 검색 할 수 있지만,이 [답변] (http://stackoverflow.com/questions/19896800/starting-or-restarting-unicorn-with-capistrano-3-x)가 도움이됩니까? –