Hola a todos, os escribo con la esperanza de alguna respuesta ya que no soy capaz de dar con ello.
Tengo instalada la version 1.8.6 de ruby y me funciona sin problemas, en esta tengo funcionando una aplicacion WEBrick sin problemas y queria levantar otra aplicacion WEBrick en el server, es posible hacer funcionar otra aplicacion con WEBrick tambien?
He intentado levantar la aplicacion con:
ruby script/server -p 4000
pero obtengo:
Código:
=> Booting WEBrick...
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/connection_adapters/abstract_adapter.rb:120:in `log': Mysql::Error: Lost connection to MySQL server during query: SHOW FIELDS FROM globalize_languages (ActiveRecord::StatementInvalid)
from /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/connection_adapters/mysql_adapter.rb:184:in `execute'
from /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/connection_adapters/mysql_adapter.rb:292:in `columns'
from /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/base.rb:696:in `columns'
from /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/base.rb:709:in `column_names'
from /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/base.rb:722:in `column_methods_hash'
from /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/base.rb:1158:in `all_attributes_exists?'
from /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:140:in `all?'
from /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/base.rb:1158:in `each'
... 15 levels...
from /usr/local/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/commands/server.rb:30
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
from script/server:3
El archivo database.yml tiene correctamente configurado su bd. Pero parece como si fuera a mirar y a usar la config de la otra aplicacion cuando arranca este WEBrick.
Sabeis si se puede conseguir? Os lo agradeceria sinceramente.
Sa|u2.