웹 응용 프로그램을 내 서버에 배포하고 있으며 아래 오류 메시지를 없애는 방법을 찾을 수 없다는 것을 제외하고는 모든 것이 완벽하게 작동합니다. 배포하기 전에 나는 내 로그에 development 및 production.rb 파일을 가지고 있지만 서버로 전송할 때는 아무 것도없고 작성할 수 없습니다. 다른 솔루션을 찾았지만 지금까지 아무 것도 작동하지 않았습니다. 어떻게이 오류를 해결할 수 있습니까?레일 3 서버의 로그 파일에 액세스 할 수 없습니다.
Rails Error: Unable to access log file. Please ensure that
/var/www/websites/public/appname/releases/20120608236602/log/production.log
exists and is chmod 0666. The log level has been raised to WARN and
the output directed to STDERR until the problem is fixed.
어떻게 앱을 배포 :
당신과 그 디렉토리에 대한 사용 권한을 변경할 수 있습니까? –
@cheeseweasel capistrano로 배포하고 있습니다 – coletrain
기본적으로 Capistrano는 appname/shared 폴더에 로그 폴더를 설정하고 releases/xxx/log는 심볼릭 링크 여야합니다. –