【发布时间】:2016-06-04 15:54:14
【问题描述】:
这里是 eb 部署失败的日志。它似乎与预编译有关。我在 Heroku 遇到了类似的问题,但都无法解决。本地主机启动正常,但由于 UTF-8 格式,预编译无法正常工作。我不太确定如何进行。任何建议将不胜感激。
mexil@nach:~/workspace/dryit$ eb deploy
Creating application version archive "app-80bb-160223_122919".
Uploading dryit/app-80bb-160223_122919.zip to S3. This may take a while.
Upload Complete.
INFO: Environment update is starting.
INFO: Deploying new version to instance(s).
ERROR: [Instance: i-9d55f345] Command failed on instance. Return code: 1 Output: (TRUNCATED)...b assets:precompile' webapp
+ '[' false == true ']'
+ su -s /bin/bash -c 'bundle exec rake assets:precompile' webapp
rake aborted!
ArgumentError: invalid byte sequence in UTF-8
Tasks: TOP => assets:precompile
(See full trace by running task with --trace).
Hook /opt/elasticbeanstalk/hooks/appdeploy/pre/11_asset_compilation.sh failed. For more detail, check /var/log/eb-activity.log using console or EB CLI.
INFO: Command execution completed on all instances. Summary: [Successful: 0, Failed: 1].
ERROR: Unsuccessful command execution on instance id(s) 'i-9d55f345'. Aborting the operation.
ERROR: Failed to deploy application.
【问题讨论】:
标签: ruby-on-rails amazon-elastic-beanstalk