Bundler:找不到阻止弹性beanstalk部署的Gemfile

时间:2014-08-27 13:59:47

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

我正在尝试部署到弹性beanstalk,我收到的错误对我来说并没有多大意义。下面是我的日志文件中的错误,它抱怨缺少gemfile;然而,gemfile确实在那里:

2014-08-27 13:45:33,639 [INFO] (708 MainThread) [directoryHooksExecutor.py-29] [root directoryHooksExecutor info] Script succeeded.
2014-08-27 13:45:33,639 [INFO] (708 MainThread) [directoryHooksExecutor.py-29] [root directoryHooksExecutor info] Executing script: /opt/elasticbeanstalk/hooks/appdeploy/pre/11_asset_compilation.sh
2014-08-27 13:45:33,675 [INFO] (708 MainThread) [directoryHooksExecutor.py-29] [root directoryHooksExecutor info] Output from script: Skipping asset compilation (RAILS_SKIP_ASSET_COMPILATION=true).

2014-08-27 13:45:33,676 [INFO] (708 MainThread) [directoryHooksExecutor.py-29] [root directoryHooksExecutor info] Script succeeded.
2014-08-27 13:45:33,676 [INFO] (708 MainThread) [directoryHooksExecutor.py-29] [root directoryHooksExecutor info] Executing script: /opt/elasticbeanstalk/hooks/appdeploy/pre/12_db_migration.sh
2014-08-27 13:45:33,711 [INFO] (708 MainThread) [directoryHooksExecutor.py-29] [root directoryHooksExecutor info] Output from script: Skipping database migrations (RAILS_SKIP_MIGRATIONS=true).

2014-08-27 13:45:33,712 [INFO] (708 MainThread) [directoryHooksExecutor.py-29] [root directoryHooksExecutor info] Script succeeded.
2014-08-27 13:45:33,712 [INFO] (708 MainThread) [directoryHooksExecutor.py-29] [root directoryHooksExecutor info] Executing script: /opt/elasticbeanstalk/hooks/appdeploy/pre/13_test_for_puma.rb
2014-08-27 13:45:33,766 [INFO] (708 MainThread) [directoryHooksExecutor.py-29] [root directoryHooksExecutor info] Output from script: /opt/rubies/ruby-2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.3.5/lib/bundler/shared_helpers.rb:22:in `default_gemfile': Could not locate Gemfile (Bundler::GemfileNotFound)
    from /opt/rubies/ruby-2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.3.5/lib/bundler.rb:231:in `default_gemfile'
    from /opt/rubies/ruby-2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.3.5/lib/bundler.rb:177:in `root'
    from /opt/rubies/ruby-2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.3.5/lib/bundler.rb:99:in `bundle_path'
    from /opt/rubies/ruby-2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.3.5/lib/bundler.rb:378:in `configure_gem_home'
    from /opt/rubies/ruby-2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.3.5/lib/bundler.rb:367:in `configure_gem_home_and_path'
    from /opt/rubies/ruby-2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.3.5/lib/bundler.rb:90:in `configure'
    from /opt/rubies/ruby-2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.3.5/lib/bundler.rb:146:in `definition'
    from /opt/elasticbeanstalk/hooks/appdeploy/pre/13_test_for_puma.rb:5:in `<main>'

2014-08-27 13:45:33,766 [ERROR] (708 MainThread) [directoryHooksExecutor.py-33] [root directoryHooksExecutor error] Script /opt/elasticbeanstalk/hooks/appdeploy/pre/13_test_for_puma.rb failed with returncode 1

1 个答案:

答案 0 :(得分:0)

这是我在Mac OSX Yosemite上的结果。当用约塞米蒂压缩时,它使用Darwin二进制zip文件,弹性beanstalk不支持。尝试下载Keka并使用该工具压缩它。