我的问题类似于Rails 3 Unable to access log file on server,但每次我使用def options_for_poollength
[['Long Course Meters','LCM'], ['Short Course Yards','SCY'], ['Short Course Meter','SCM']]
end
上传新版本的代码时都会重新出现。
我采取的步骤是
eb deploy
eb deploy
eb ssh
返回ls -la /var/app/current/log/
-rw-r--r--
production.log文件现在是可写的。但是,如果我对代码进行进一步更改并重新部署,问题就会重新解决:
sudo chmod 0664 /var/app/current/log/production.log
eb deploy
eb ssh
返回ls -la /var/app/current/log/
上传的捆绑包中不包含production.log文件。如何防止在每次部署后将此文件设置为只读?
在ElasticBeanstalk上使用Rails 4.2.0