2014-08-27 21 views
1

我想部署到彈性豆莖,我得到一個錯誤,對我沒有多大意義。以下是我的日誌文件中的錯誤,它是在抱怨缺少gemfile;然而,gemfile確實存在:Bundler: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 
+0

你的應用程序是否有Gemfile?你可以嘗試在你的應用程序中創建一個空的Gemfile,看看它是否成功? – 2014-08-28 20:17:31

+0

Gemfile不是問題。 – 2014-09-29 18:46:52

回答

0

這是我在Mac OSX Yosemite上的結果。當使用Yosemite壓縮時,它使用彈性beanstalk不支持的Darwin二進制壓縮文件。嘗試下載Keka並使用該工具進行壓縮。

相關問題