在 CF 中部署 RoR 应用程序的问题

Issue deploying RoR app in CF

我正在尝试使用下面的 Ruby 2.2.0 和 Rails 4.2.0,gem 文件部署 RoR 应用程序。我可以在本地 运行 应用程序,但是当我推送到 CF 时,出现以下错误,但没有任何有用的信息。

2015-03-03T14:31:26.61-0500 [API]     ERR Encountered error: Staging error: failed to stage application:
2015-03-03T14:31:26.61-0500 [API]     ERR Script exited with status 255

我正在使用 CF 社区 ruby buildpack (https://github.com/cloudfoundry/ruby-buildpack.git),因为它似乎是唯一支持 ruby 2.2.

我用来推送的命令是cf push myapp -b https://github.com/cloudfoundry/ruby-buildpack.git

宝石文件: 来源'https://rubygems.org'

ruby "2.2.0"

# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.2.0'

# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '>= 1.3.0'

# Use CoffeeScript for .js.coffee assets and views
gem 'coffee-rails'

# See https://github.com/sstephenson/execjs#readme for more supported runtimes
gem 'therubyracer', platforms: :ruby

# Use jquery as the JavaScript library
gem 'jquery-rails'

# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
gem 'turbolinks'

# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 1.2'

# https://github.com/namick/obfuscate_id
gem 'obfuscate_id', github: 'namick/obfuscate_id'

gem 'yui-compressor'

# https://github.com/attr-encrypted/attr_encrypted
gem 'attr_encrypted'

group :doc do
# bundle exec rake doc:rails generates the API under doc/api.
gem 'sdoc', require: false
end

group :development, :test do
gem 'rspec-rails', '~> 3.0'
gem 'factory_girl_rails', "~> 4.0"
gem 'capybara'
gem 'capybara-email' #, github: 'dockyard/capybara-email'
gem 'guard-rspec'
gem 'guard-livereload'
gem 'guard-resque', github: 'railsjedi/guard-resque'
gem 'launchy'
gem 'faker'
gem 'pry-byebug'
gem 'pry-macro'
gem 'seed_dumper'
gem 'ruby-prof'
# Enough of these assets messages in log!
gem 'disable_assets_logger'
gem 'railroady'
end

# Testing
group :test do
gem 'simplecov', require: false
gem 'rubocop', require: false
gem 'rubocop-rspec', require: false
gem "database_cleaner"
gem 'timecop'
gem 'poltergeist'
gem "fakeredis", :require => "fakeredis/rspec"
end

group :development do
# gem 'binding_of_caller', '>= 0.7.1'
# gem 'better_errors', '>= 0.7.2'
gem 'web-console', '~> 2.0'
gem 'binding_of_caller', '0.7.3.pre1'
gem 'capistrano'
gem 'capistrano-rvm'
gem 'capistrano-rails'
gem 'capistrano-resque', '~> 0.2.1', require: false
gem 'spring-commands-rspec'
gem 'awesome_print'
gem 'pry-rails'
gem 'meta_request'
gem 'bullet'
end

# Database
gem 'pg'
gem 'sqlite3'
gem 'cf-autoconfig'
gem 'groupdate'
gem 'redis-rails'
gem 'apartment', github: 'influitive/apartment'

# Service object pattern
gem 'interactor-rails', '~> 2.0'

# Currency
gem 'money-rails'
gem 'google_currency'

# Analytics
gem 'ga_events'
gem 'newrelic_rpm'

# Twitter Bootstrap
gem 'sass-rails', '4.0.3'
gem 'bootstrap-sass', '~> 3.3.1'
gem 'bootstrap-sass-extras'
gem 'autoprefixer-rails'

gem 'momentjs-rails', '>= 2.8.1'
gem 'bootstrap3-datetimepicker-rails', '~> 3.1.3'

# Design stuff
#gem 'table_for_collection'
gem 'simple_form', github: 'plataformatec/simple_form'
gem "font-awesome-rails"

# Static pages (without dealing with too many routes)
gem 'high_voltage'
gem 'nestive', '~> 0.5'

# Social Network Sharing
# gem 'shareable'

# Front-end
gem 'haml-rails'
gem 'draper', '~> 1.4'
gem 'humane-rails'
gem 'autonumeric-rails'
gem 'country_select'

# A/B Testing gem (remove for optimizely?)
gem 'split', require: 'split/dashboard'

# Structure js files and view integration
gem 'pluggable_js', '~> 2.0.0'

# Sign up wizard
gem 'wicked'

# Graphs
gem 'lazy_high_charts'

#Account management
gem 'devise'
gem 'devise_invitable'
gem 'omniauth'
gem 'omniauth-xero', github: 'kaleworsley/omniauth-xero'
gem 'omniauth-freshbooks'
gem 'omniauth-quickbooks'
#gem 'omniauth-linkedin'
#gem 'omniauth-twitter'
#gem 'omniauth-facebook'
#gem 'omniauth-yelp'
gem 'pundit'

# Audit
gem 'paper_trail', '~> 3.0.5'

gem 'activeadmin', github: 'activeadmin'

gem 'enumerize'
gem 'enum_help'


# External accounts
#gem 'xeroizer', '2.15.5'
gem 'freshbooks.rb'
gem 'quickbooks-ruby'
#https://github.com/cloocher/aggcat
#gem 'aggcat'

# MailChimp integration
gem 'gibbon'

# Contact us, https://github.com/plataformatec/mail_form
gem 'mail_form'

# Page caching
gem 'actionpack-page_caching'

# Other helpers
gem "workflow"
#gem "httparty"
gem "resque", "~> 1.25.2"
gem 'resque-status'

我实际上最终从我的应用程序的 git 中提取了一个干净的副本并使用了 (https://github.com/cloudfoundry/ruby-buildpack.git buildpack 并且一切都神奇地工作了。我认为 Cloud Foundry 正在尝试使用旧版本的buildpack 不知何故...