我正在尝试在我的论坛中集成galetahub / ckeditor,尝试从git中安装捆绑但有些问题,因为在弹性beanstalk生成中未检测到git命令,即使我在.elasticbeanstalk / config.yml中包含git包。此外,需要更改一些参数以使用git,bundle来安装gem。所以,我将gem克隆到myvendor / gems并将路径更改为local
所以包含Gemfile,
gem 'ckeditor', '4.5.10', :path => File.join(File.dirname(__FILE__), 'vendor', 'gems', 'ckeditor')
部署安装后但在资产预编译任务期间,它没有检测模块, 在开发环境中,一切正常。
eb日志错误
export RUBY_VERSION=2.3.1;
export GEM_ROOT="/opt/rubies/ruby-2.3.1/lib/ruby/gems/2.3.0";'
+++ export RUBY_ENGINE=ruby
+++ RUBY_ENGINE=ruby
+++ export RUBY_VERSION=2.3.1
+++ RUBY_VERSION=2.3.1
+++ export GEM_ROOT=/opt/rubies/ruby-2.3.1/lib/ruby/gems/2.3.0
+++ GEM_ROOT=/opt/rubies/ruby-2.3.1/lib/ruby/gems/2.3.0
++ (( 0 != 0 ))
+ cd /var/app/ondeck
+ su -s /bin/bash -c 'bundle exec /opt/elasticbeanstalk/support/scripts/check-for-rake-task.rb assets:precompile' webapp
+ '[' false == true ']'
+ su -s /bin/bash -c 'bundle exec rake assets:precompile' webapp
rake aborted!
NoMethodError: undefined method `setup' for Ckeditor:Module
/var/app/ondeck/config/initializers/ckeditor.rb:2:in `<top (required)>'
/var/app/ondeck/config/environment.rb:5:in `<top (required)>'
/opt/rubies/ruby-2.3.1/bin/bundle:23:in `load'
/opt/rubies/ruby-2.3.1/bin/bundle:23:in `<main>'
Tasks: TOP => environment
(See full trace by running task with —trace) (Executor::NonZeroExitStatus)