【发布时间】:2018-08-10 03:23:12
【问题描述】:
我正在尝试使用 AWS OpsWorks 和 Chef 部署应用程序,我曾在其他时间运行过部署并且从未失败,但这次我在日志中收到了下一条消息。我运行命令包 在 localhost 中执行 rake assets:precompile] 一切正常, 可以是什么?
[2018-03-01T18:50:54+00:00] INFO: Processing execute[cd
/srv/www/my_project/releases/20180301185045 && RAILS_ENV=production bundle
exec rake assets:precompile] action run
(/opt/aws/opsworks/releases/20160504095744_3437-
20160504095744/vendor/bundle/ruby/2.0.0/gems/chef-
11.10.4/lib/chef/provider/deploy.rb line 63)
Error executing action 'run' on resource 'execute[cd
/srv/www/my_project/releases/20180301185045 && RAILS_ENV=production bundle
exec rake assets:precompile]'
Mixlib::ShellOut::ShellCommandFailed
------------------------------------
Expected process to exit with [0], but received '137'
---- Begin output of cd /srv/www/my_project/releases/20180301185045 &&
RAILS_ENV=production bundle exec rake assets:precompile ----
STDOUT:
【问题讨论】:
标签: ruby-on-rails amazon aws-opsworks