每次ElasticBeanstalk部署后,Production.log文件将变为只读

时间:2015-11-06 01:04:51

标签: ruby-on-rails amazon-web-services elastic-beanstalk

我的问题类似于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

0 个答案:

没有答案