2015-07-22 1 views
0

J'ai essayé de pousser mon application 'openconferenceware' vers le bluemix. Bien que l'application fonctionne parfaitement sur mon système local, elle n'est pas déployée sur le Bluemix.Déploiement de l'application Ruby on Rails (OpenConferenceWare) sur IBM Bluemix

Voici la sortie du journal.

Writing config/database.yml to read from DATABASE_URL 
-----> Preparing app for Rails asset pipeline 
     Running: rake assets:precompile 
     rake aborted! 
     NameError: uninitialized constant OpenConferenceWare 
     /tmp/staged/app/config/initializers/01_open_conference_ware.rb:3:in `<top (required)>' 
     /tmp/staged/app/vendor/bundle/ruby/2.1.0/gems/railties-4.0.2/lib/rails/engine.rb:609:in `block (2 levels) in <class:Engine>' 
     /tmp/staged/app/vendor/bundle/ruby/2.1.0/gems/railties-4.0.2/lib/rails/engine.rb:608:in `each' 
     /tmp/staged/app/vendor/bundle/ruby/2.1.0/gems/railties-4.0.2/lib/rails/engine.rb:608:in `block in <class:Engine>' 
     /tmp/staged/app/vendor/bundle/ruby/2.1.0/gems/railties-4.0.2/lib/rails/initializable.rb:30:in `instance_exec' 
     /tmp/staged/app/vendor/bundle/ruby/2.1.0/gems/railties-4.0.2/lib/rails/initializable.rb:30:in `run' 
     /tmp/staged/app/vendor/bundle/ruby/2.1.0/gems/railties-4.0.2/lib/rails/initializable.rb:55:in `block in run_initializers' 
     /tmp/staged/app/vendor/bundle/ruby/2.1.0/gems/railties-4.0.2/lib/rails/initializable.rb:54:in `run_initializers' 
     /tmp/staged/app/vendor/bundle/ruby/2.1.0/gems/railties-4.0.2/lib/rails/application.rb:215:in `initialize!' 
     /tmp/staged/app/vendor/bundle/ruby/2.1.0/gems/railties-4.0.2/lib/rails/railtie/configurable.rb:30:in `method_missing' 
     /tmp/staged/app/config/environment.rb:5:in `<top (required)>' 
     /tmp/staged/app/vendor/bundle/ruby/2.1.0/gems/railties-4.0.2/lib/rails/application.rb:189:in `require_environment!' 
     /tmp/staged/app/vendor/bundle/ruby/2.1.0/gems/railties-4.0.2/lib/rails/application.rb:250:in `block in run_tasks_blocks' 
     /tmp/staged/app/vendor/bundle/ruby/2.1.0/gems/sprockets-rails-2.0.1/lib/sprockets/rails/task.rb:54:in `block (2 levels) in define' 
     Tasks: TOP => environment 
     (See full trace by running task with --trace) 
! 
!  Precompiling assets failed. 
! 
Staging failed: Buildpack compilation step failed 

Ci-dessous mon Gemfile

source 'https://rubygems.org' 

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

# Use sqlite3 as the database for Active Record 
gem 'sqlite3' 
gem 'ibm_db' 
gem 'pg' 

# Use SCSS for stylesheets 
gem 'sass-rails', '~> 4.0.0' 

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

# Use CoffeeScript for .js.coffee assets and views 
gem 'coffee-rails', '~> 4.0.0' 

# 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' 

gem "open_conference_ware", "~> 1.0.0.pre" 
group :doc do 
    # bundle exec rake doc:rails generates the API under doc/api. 
    gem 'sdoc', require: false 
end 

# Use ActiveModel has_secure_password 
# gem 'bcrypt-ruby', '~> 3.1.2' 

# Use unicorn as the app server 
# gem 'unicorn' 

# Use Capistrano for deployment 
# gem 'capistrano', group: :development 

# Use debugger 
# gem 'debugger', group: [:development, :test] 

et mon fichier database.yml

# SQLite version 3.x 
# gem install sqlite3 
# 
# Ensure the SQLite 3 gem is defined in your Gemfile 
# gem 'sqlite3' 
development: 
    adapter: sqlite3 
    database: db/development.sqlite3 
    pool: 5 
    timeout: 5000 

# Warning: The database defined as "test" will be erased and 
# re-generated from your development database when you run "rake". 
# Do not set this db to the same as development or production. 
test: 
    adapter: sqlite3 
    database: db/test.sqlite3 
    pool: 5 
    timeout: 5000 

production: 
    adapter: sqlite3 
    database: db/production.sqlite3 
    pool: 5 
    timeout: 5000 

Les pointeurs sur la façon de migrer l'application sur bluemix.

Addl.INFO fichier Manifest

applications: 
- disk_quota: 1024M 
    host: csw-events 
    name: csw-events 
    path: . 
    domain: mybluemix.net 
    instances: 1 
    memory: 1920M 

J'ai aussi essayé avec (Comme suggéré dans ce post):

applications: 
- disk_quota: 1024M 
    host: csw-events 
    name: csw-events 
    path: . 
    domain: mybluemix.net 
    instances: 1 
    memory: 1920M 
    command: bundle exec rake db:setup && bundle exec rails s -p $PORT 
    services: 
    #swap out the below for your own 
    cf cs elephantsql turtle dnxluuom 
    #cf cs rediscloud 25mb yourownname 
    #redis cloud has different plans, check out cf marketplace for the plans 
    - postgres-myapp 

Avec la deuxième version du fichier Manifest, je reçois une erreur manifeste :

Error reading manifest file: yaml: control characters are not allowed at line 1, column 1 

J'utilise rubis 2.2.1p85

bâtiment à partir des résultats du rubis dans l'extrait ci-dessous du fichier journal (L'application ne démarre pas)

2015-07-23T16:21:16.22+0200 [STG/0]  OUT  Bundle complete! 11 Gemfile dependencies, 69 gems now installed. 
2015-07-23T16:21:16.22+0200 [STG/0]  OUT  Gems in the groups development and test were not installed. 
2015-07-23T16:21:16.22+0200 [STG/0]  OUT  Bundled gems are installed into ./vendor/bundle. 
2015-07-23T16:21:16.24+0200 [STG/0]  OUT  Bundle completed (0.61s) 
2015-07-23T16:21:16.26+0200 [STG/0]  OUT  Cleaning up the bundler cache. 
2015-07-23T16:21:18.36+0200 [STG/0]  OUT -----> Writing config/database.yml to read from DATABASE_URL 
2015-07-23T16:21:22.48+0200 [STG/0]  OUT -----> Preparing app for Rails asset pipeline 
2015-07-23T16:21:22.58+0200 [STG/0]  OUT  Running: rake assets:precompile 
2015-07-23T16:21:23.13+0200 [STG/0]  OUT  /tmp/staged/app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.0.2/lib/active_support/values/time_zone.r            b:282: warning: circular argument reference - now 
2015-07-23T16:21:25.85+0200 [STG/0]  OUT  Asset precompilation completed (3.25s) 
2015-07-23T16:21:25.85+0200 [STG/0]  OUT  Cleaning assets 
2015-07-23T16:21:25.85+0200 [STG/0]  OUT  Running: rake assets:clean 
2015-07-23T16:21:26.39+0200 [STG/0]  OUT  /tmp/staged/app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.0.2/lib/active_support/values/time_zone.r            b:282: warning: circular argument reference - now 
2015-07-23T16:21:28.98+0200 [STG/0]  OUT ###### WARNING: 
2015-07-23T16:21:28.98+0200 [STG/0]  OUT  Include 'rails_12factor' gem to enable all platform features 
2015-07-23T16:21:28.98+0200 [STG/0]  OUT  See https://devcenter.heroku.com/articles/rails-integration-gems for more information. 
2015-07-23T16:21:28.98+0200 [STG/0]  OUT ###### WARNING: 
2015-07-23T16:21:28.98+0200 [STG/0]  OUT  You have not declared a Ruby version in your Gemfile. 
2015-07-23T16:21:28.98+0200 [STG/0]  OUT  To set your Ruby version add this line to your Gemfile: 
2015-07-23T16:21:28.98+0200 [STG/0]  OUT  ruby '2.2.2' 
2015-07-23T16:21:28.98+0200 [STG/0]  OUT  # See https://devcenter.heroku.com/articles/ruby-versions for more information. 
2015-07-23T16:21:28.98+0200 [STG/0]  OUT ###### WARNING: 
2015-07-23T16:21:28.98+0200 [STG/0]  OUT  No Procfile detected, using the default web server (webrick) 
2015-07-23T16:21:28.98+0200 [STG/0]  OUT  https://devcenter.heroku.com/articles/ruby-default-web-server 
2015-07-23T16:21:37.09+0200 [STG/130] OUT -----> Uploading droplet (38M) 
2015-07-23T16:21:47.20+0200 [DEA/130] OUT Starting app instance (index 0) with guid ff6f8fba-6b2c-4f38-a118-8154fe77114a 
2015-07-23T16:22:04.76+0200 [App/0]  ERR /home/vcap/app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.0.2/lib/active_support/values/time_zone.rb:282: w            arning: circular argument reference - now 
2015-07-23T16:22:07.72+0200 [App/0]  ERR /home/vcap/app/config.ru:4:in `block in <main>': uninitialized constant RailsStarter (NameError) 
2015-07-23T16:22:07.72+0200 [App/0]  ERR from /home/vcap/app/vendor/bundle/ruby/2.2.0/gems/rack-1.5.5/lib/rack/builder.rb:55:in `instance_eval' 
2015-07-23T16:22:07.72+0200 [App/0]  ERR from /home/vcap/app/vendor/bundle/ruby/2.2.0/gems/rack-1.5.5/lib/rack/builder.rb:55:in `initialize' 
2015-07-23T16:22:07.72+0200 [App/0]  ERR from /home/vcap/app/config.ru:in `new' 
2015-07-23T16:22:07.72+0200 [App/0]  ERR from /home/vcap/app/config.ru:in `<main>' 
2015-07-23T16:22:07.72+0200 [App/0]  ERR from /home/vcap/app/vendor/bundle/ruby/2.2.0/gems/rack-1.5.5/lib/rack/builder.rb:49:in `eval' 
2015-07-23T16:22:07.72+0200 [App/0]  ERR from /home/vcap/app/vendor/bundle/ruby/2.2.0/gems/rack-1.5.5/lib/rack/builder.rb:49:in `new_from_string' 
2015-07-23T16:22:07.72+0200 [App/0]  ERR from /home/vcap/app/vendor/bundle/ruby/2.2.0/gems/rack-1.5.5/lib/rack/builder.rb:40:in `parse_file' 
2015-07-23T16:22:07.72+0200 [App/0]  ERR from /home/vcap/app/vendor/bundle/ruby/2.2.0/gems/rack-1.5.5/lib/rack/server.rb:277:in `build_app_and_optio            ns_from_config' 
2015-07-23T16:22:07.72+0200 [App/0]  ERR from /home/vcap/app/vendor/bundle/ruby/2.2.0/gems/rack-1.5.5/lib/rack/server.rb:199:in `app' 
2015-07-23T16:22:07.72+0200 [App/0]  ERR from /home/vcap/app/vendor/bundle/ruby/2.2.0/gems/railties-4.0.2/lib/rails/commands/server.rb:48:in `app' 
2015-07-23T16:22:07.72+0200 [App/0]  ERR from /home/vcap/app/vendor/bundle/ruby/2.2.0/gems/rack-1.5.5/lib/rack/server.rb:314:in `wrapped_app' 
2015-07-23T16:22:07.72+0200 [App/0]  ERR from /home/vcap/app/vendor/bundle/ruby/2.2.0/gems/railties-4.0.2/lib/rails/commands/server.rb:75:in `start' 
2015-07-23T16:22:07.72+0200 [App/0]  ERR from /home/vcap/app/vendor/bundle/ruby/2.2.0/gems/railties-4.0.2/lib/rails/commands.rb:76:in `block in <top            (required)>' 
2015-07-23T16:22:07.72+0200 [App/0]  ERR from /home/vcap/app/vendor/bundle/ruby/2.2.0/gems/railties-4.0.2/lib/rails/commands.rb:71:in `tap' 
2015-07-23T16:22:07.72+0200 [App/0]  ERR from /home/vcap/app/vendor/bundle/ruby/2.2.0/gems/railties-4.0.2/lib/rails/commands.rb:71:in `<top (require            d)>' 
2015-07-23T16:22:07.72+0200 [App/0]  ERR from bin/rails:4:in `require' 
2015-07-23T16:22:07.72+0200 [App/0]  ERR from bin/rails:4:in `<main>' 
2015-07-23T16:22:07.79+0200 [App/0]  OUT => Booting WEBrick 
2015-07-23T16:22:07.79+0200 [App/0]  OUT => Rails 4.0.2 application starting in production on http://0.0.0.0:61596 
2015-07-23T16:22:07.79+0200 [App/0]  OUT => Run `rails server -h` for more startup options 
2015-07-23T16:22:07.79+0200 [App/0]  OUT => Ctrl-C to shutdown server 
2015-07-23T16:22:07.79+0200 [App/0]  OUT Exiting 
2015-07-23T16:22:07.87+0200 [DEA/130] ERR Instance (index 0) failed to start accepting connections 
2015-07-23T16:22:07.91+0200 [API/0]  OUT App instance exited with guid ff6f8fba-6b2c-4f38-a118-8154fe77114a payload: {"cc_partition"=>"default", "dropl            et"=>"ff6f8fba-6b2c-4f38-a118-8154fe77114a", "version"=>"d2bc534f-8115-4e37-9504-dc0bc560232f", "instance"=>"cbb191f6bdd0440daaf5d4eac49df869", "index"=>0,            "reason"=>"CRASHED", "exit_status"=>1, "exit_description"=>"failed to accept connections within health check timeout", "crash_timestamp"=>1437661327} 
2015-07-23T16:22:07.91+0200 [API/10]  OUT App instance exited with guid ff6f8fba-6b2c-4f38-a118-8154fe77114a payload: {"cc_partition"=>"default", "dropl            et"=>"ff6f8fba-6b2c-4f38-a118-8154fe77114a", "version"=>"d2bc534f-8115-4e37-9504-dc0bc560232f", "instance"=>"cbb191f6bdd0440daaf5d4eac49df869", "index"=>0,            "reason"=>"CRASHED", "exit_status"=>1, "exit_description"=>"failed to accept connections within health check timeout", "crash_timestamp"=>1437661327} 
2015-07-23T16:23:31.79+0200 [DEA/18]  OUT Starting app instance (index 0) with guid ff6f8fba-6b2c-4f38-a118-8154fe77114a 
2015-07-23T16:23:59.11+0200 [App/0]  ERR /home/vcap/app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.0.2/lib/active_support/values/time_zone.rb:282: w            arning: circular argument reference - now 
2015-07-23T16:24:03.67+0200 [App/0]  ERR /home/vcap/app/config.ru:4:in `block in <main>': uninitialized constant RailsStarter (NameError) 
2015-07-23T16:24:03.67+0200 [App/0]  ERR from /home/vcap/app/vendor/bundle/ruby/2.2.0/gems/rack-1.5.5/lib/rack/builder.rb:55:in `instance_eval' 
2015-07-23T16:24:03.67+0200 [App/0]  ERR from /home/vcap/app/vendor/bundle/ruby/2.2.0/gems/rack-1.5.5/lib/rack/builder.rb:55:in `initialize' 
2015-07-23T16:24:03.67+0200 [App/0]  ERR from /home/vcap/app/config.ru:in `new' 
2015-07-23T16:24:03.67+0200 [App/0]  ERR from /home/vcap/app/config.ru:in `<main>' 
2015-07-23T16:24:03.67+0200 [App/0]  ERR from /home/vcap/app/vendor/bundle/ruby/2.2.0/gems/rack-1.5.5/lib/rack/builder.rb:49:in `eval' 
2015-07-23T16:24:03.67+0200 [App/0]  ERR from /home/vcap/app/vendor/bundle/ruby/2.2.0/gems/rack-1.5.5/lib/rack/builder.rb:49:in `new_from_string' 
2015-07-23T16:24:03.67+0200 [App/0]  ERR from /home/vcap/app/vendor/bundle/ruby/2.2.0/gems/rack-1.5.5/lib/rack/builder.rb:40:in `parse_file' 
2015-07-23T16:24:03.67+0200 [App/0]  ERR from /home/vcap/app/vendor/bundle/ruby/2.2.0/gems/rack-1.5.5/lib/rack/server.rb:277:in `build_app_and_optio            ns_from_config' 
2015-07-23T16:24:03.67+0200 [App/0]  ERR from /home/vcap/app/vendor/bundle/ruby/2.2.0/gems/rack-1.5.5/lib/rack/server.rb:199:in `app' 
2015-07-23T16:24:03.67+0200 [App/0]  ERR from /home/vcap/app/vendor/bundle/ruby/2.2.0/gems/railties-4.0.2/lib/rails/commands/server.rb:48:in `app' 
2015-07-23T16:24:03.67+0200 [App/0]  ERR from /home/vcap/app/vendor/bundle/ruby/2.2.0/gems/rack-1.5.5/lib/rack/server.rb:314:in `wrapped_app' 
2015-07-23T16:24:03.67+0200 [App/0]  ERR from /home/vcap/app/vendor/bundle/ruby/2.2.0/gems/railties-4.0.2/lib/rails/commands/server.rb:75:in `start' 
2015-07-23T16:24:03.67+0200 [App/0]  ERR from /home/vcap/app/vendor/bundle/ruby/2.2.0/gems/railties-4.0.2/lib/rails/commands.rb:76:in `block in <top            (required)>' 
2015-07-23T16:24:03.67+0200 [App/0]  ERR from /home/vcap/app/vendor/bundle/ruby/2.2.0/gems/railties-4.0.2/lib/rails/commands.rb:71:in `tap' 
2015-07-23T16:24:03.67+0200 [App/0]  ERR from /home/vcap/app/vendor/bundle/ruby/2.2.0/gems/railties-4.0.2/lib/rails/commands.rb:71:in `<top (require            d)>' 
2015-07-23T16:24:03.67+0200 [App/0]  ERR from bin/rails:4:in `require' 
2015-07-23T16:24:03.67+0200 [App/0]  ERR from bin/rails:4:in `<main>' 
2015-07-23T16:24:03.75+0200 [App/0]  OUT => Booting WEBrick 
2015-07-23T16:24:03.75+0200 [App/0]  OUT => Rails 4.0.2 application starting in production on http://0.0.0.0:61502 
2015-07-23T16:24:03.75+0200 [App/0]  OUT => Run `rails server -h` for more startup options 
2015-07-23T16:24:03.75+0200 [App/0]  OUT => Ctrl-C to shutdown server 
2015-07-23T16:24:03.75+0200 [App/0]  OUT Exiting 
2015-07-23T16:24:03.89+0200 [DEA/18]  ERR Instance (index 0) failed to start accepting connections 
2015-07-23T16:24:03.92+0200 [API/0]  OUT App instance exited with guid ff6f8fba-6b2c-4f38-a118-8154fe77114a payload: {"cc_partition"=>"default", "dropl            et"=>"ff6f8fba-6b2c-4f38-a118-8154fe77114a", "version"=>"d2bc534f-8115-4e37-9504-dc0bc560232f", "instance"=>"f3bbb48d0e864b29a36c93170061303d", "index"=>0,            "reason"=>"CRASHED", "exit_status"=>1, "exit_description"=>"failed to accept connections within health check timeout", "crash_timestamp"=>1437661443} 
2015-07-23T16:24:03.93+0200 [API/4]  OUT App instance exited with guid ff6f8fba-6b2c-4f38-a118-8154fe77114a payload: {"cc_partition"=>"default", "dropl            et"=>"ff6f8fba-6b2c-4f38-a118-8154fe77114a", "version"=>"d2bc534f-8115-4e37-9504-dc0bc560232f", "instance"=>"f3bbb48d0e864b29a36c93170061303d", "index"=>0,            "reason"=>"CRASHED", "exit_status"=>1, "exit_description"=>"failed to accept connections within health check timeout", "crash_timestamp"=>1437661443} 
2015-07-23T16:24:32.45+0200 [DEA/97]  OUT Starting app instance (index 0) with guid ff6f8fba-6b2c-4f38-a118-8154fe77114a 
2015-07-23T16:24:58.93+0200 [App/0]  ERR /home/vcap/app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.0.2/lib/active_support/values/time_zone.rb:282: w            arning: circular argument reference - now 
2015-07-23T16:25:03.78+0200 [App/0]  ERR /home/vcap/app/config.ru:4:in `block in <main>': uninitialized constant RailsStarter (NameError) 
2015-07-23T16:25:03.78+0200 [App/0]  ERR from /home/vcap/app/vendor/bundle/ruby/2.2.0/gems/rack-1.5.5/lib/rack/builder.rb:55:in `instance_eval' 
2015-07-23T16:25:03.78+0200 [App/0]  ERR from /home/vcap/app/vendor/bundle/ruby/2.2.0/gems/rack-1.5.5/lib/rack/builder.rb:55:in `initialize' 
2015-07-23T16:25:03.78+0200 [App/0]  ERR from /home/vcap/app/config.ru:in `new' 
2015-07-23T16:25:03.78+0200 [App/0]  ERR from /home/vcap/app/config.ru:in `<main>' 
2015-07-23T16:25:03.78+0200 [App/0]  ERR from /home/vcap/app/vendor/bundle/ruby/2.2.0/gems/rack-1.5.5/lib/rack/builder.rb:49:in `eval' 
2015-07-23T16:25:03.78+0200 [App/0]  ERR from /home/vcap/app/vendor/bundle/ruby/2.2.0/gems/rack-1.5.5/lib/rack/builder.rb:49:in `new_from_string' 
2015-07-23T16:25:03.78+0200 [App/0]  ERR from /home/vcap/app/vendor/bundle/ruby/2.2.0/gems/rack-1.5.5/lib/rack/builder.rb:40:in `parse_file' 
2015-07-23T16:25:03.78+0200 [App/0]  ERR from /home/vcap/app/vendor/bundle/ruby/2.2.0/gems/rack-1.5.5/lib/rack/server.rb:277:in `build_app_and_optio            ns_from_config' 
2015-07-23T16:25:03.78+0200 [App/0]  ERR from /home/vcap/app/vendor/bundle/ruby/2.2.0/gems/rack-1.5.5/lib/rack/server.rb:199:in `app' 
2015-07-23T16:25:03.78+0200 [App/0]  ERR from /home/vcap/app/vendor/bundle/ruby/2.2.0/gems/railties-4.0.2/lib/rails/commands/server.rb:48:in `app' 
2015-07-23T16:25:03.78+0200 [App/0]  ERR from /home/vcap/app/vendor/bundle/ruby/2.2.0/gems/rack-1.5.5/lib/rack/server.rb:314:in `wrapped_app' 
2015-07-23T16:25:03.78+0200 [App/0]  ERR from /home/vcap/app/vendor/bundle/ruby/2.2.0/gems/railties-4.0.2/lib/rails/commands/server.rb:75:in `start' 
2015-07-23T16:25:03.78+0200 [App/0]  ERR from /home/vcap/app/vendor/bundle/ruby/2.2.0/gems/railties-4.0.2/lib/rails/commands.rb:76:in `block in <top            (required)>' 
2015-07-23T16:25:03.78+0200 [App/0]  ERR from /home/vcap/app/vendor/bundle/ruby/2.2.0/gems/railties-4.0.2/lib/rails/commands.rb:71:in `tap' 
2015-07-23T16:25:03.78+0200 [App/0]  ERR from /home/vcap/app/vendor/bundle/ruby/2.2.0/gems/railties-4.0.2/lib/rails/commands.rb:71:in `<top (require            d)>' 
2015-07-23T16:25:03.78+0200 [App/0]  ERR from bin/rails:4:in `require' 
2015-07-23T16:25:03.78+0200 [App/0]  ERR from bin/rails:4:in `<main>' 
2015-07-23T16:25:03.86+0200 [App/0]  OUT => Booting WEBrick 
2015-07-23T16:25:03.86+0200 [App/0]  OUT => Rails 4.0.2 application starting in production on http://0.0.0.0:61788 
2015-07-23T16:25:03.86+0200 [App/0]  OUT => Run `rails server -h` for more startup options 
2015-07-23T16:25:03.86+0200 [App/0]  OUT => Ctrl-C to shutdown server 
2015-07-23T16:25:03.86+0200 [App/0]  OUT Exiting 
2015-07-23T16:25:03.99+0200 [DEA/97]  ERR Instance (index 0) failed to start accepting connections 
2015-07-23T16:25:04.03+0200 [API/8]  OUT App instance exited with guid ff6f8fba-6b2c-4f38-a118-8154fe77114a payload: {"cc_partition"=>"default", "dropl            et"=>"ff6f8fba-6b2c-4f38-a118-8154fe77114a", "version"=>"d2bc534f-8115-4e37-9504-dc0bc560232f", "instance"=>"7d73c9cf8dfd458b98e28349d6ac3903", "index"=>0,            "reason"=>"CRASHED", "exit_status"=>1, "exit_description"=>"failed to accept connections within health check timeout", "crash_timestamp"=>1437661503} 
2015-07-23T16:25:04.03+0200 [API/3]  OUT App instance exited with guid ff6f8fba-6b2c-4f38-a118-8154fe77114a payload: {"cc_partition"=>"default", "dropl            et"=>"ff6f8fba-6b2c-4f38-a118-8154fe77114a", "version"=>"d2bc534f-8115-4e37-9504-dc0bc560232f", "instance"=>"7d73c9cf8dfd458b98e28349d6ac3903", "index"=>0,            "reason"=>"CRASHED", "exit_status"=>1, "exit_description"=>"failed to accept connections within health check timeout", "crash_timestamp"=>1437661503} 
2015-07-23T16:25:47.20+0200 [DEA/7]  OUT Starting app instance (index 0) with guid ff6f8fba-6b2c-4f38-a118-8154fe77114a 
2015-07-23T16:26:15.33+0200 [App/0]  ERR /home/vcap/app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.0.2/lib/active_support/values/time_zone.rb:282: w            arning: circular argument reference - now 

fichier Mainfest

applications: 
- services: 
    - postgres-myapp 
    disk_quota: 1024M 
    host: csw-events 
    name: csw-events 
    path: . 
    domain: mybluemix.net 
    instances: 1 
    memory: 1920M 
+0

Quel paquet de construction de ruby ​​utilisez-vous? A quoi ressemble votre fichier 'manifest.yml'? Veuillez mettre à jour votre question avec ces réponses. Veuillez également consulter ce billet de blog pour quelques conseils sur l'exécution de votre application Ruby. https://jeffsloyer.io/2015/03/05/tips-for-migrating-ruby-on-rails-applications-to-bluemix/ –

+0

J'ai ajouté le fichier manifeste – Betafish

+0

@vmovva @JeffSloyer en utilisant ce buildpack travaillé pour moi 'push csw-events -b https://github.com/cloudfoundry/staticfile-buildpack.git -s cflinuxfs2'. L'application semble être également en cours d'exécution sur le bluemix mais, je reçois cette erreur '403 Forbidden ~ nginx' des idées quant à ce qui le cause? – Betafish

Répondre

1

Vous devriez utiliser le buildpack de Ruby au lieu de celui statique (nginx). Le lien vers le buildpack Ruby est https://github.com/cloudfoundry/ruby-buildpack.git.

Pour utiliser ce buildpack, procédez comme suit.

cf push csw-events -b https://github.com/cloudfoundry/ruby-buildpack.git.

+0

J'ai essayé d'utiliser le pack de construction Ruby comme suggéré. Mais malheureusement, l'application ne commence pas. J'ai ajouté le fichier journal à la partie principale des questions. Voyez-vous quelque chose d'inhabituel dans le fichier journal? – Betafish