Acabo de estar probando despues de tu "imposible", y pasa lo siguiente:
- Aplicacion 1: corriendo perfectamente con la config para la bd A
- Aplicacion 2: corre perfectamente si le cambio la config para la bd B y utilizo la config para la bd A, efectuvamente los ficheros SI los lee en cada carpeta, pero la bd parece k no (!)
Si le pongo en la aplicacion 2 la config para la bd B y lo intento lanzar:
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
He probado con dos configs diferentes por si me habia equivocado y tal... pero lo mismo, si quiero utilizar su propia bd, nada. Osea solo arranca cuando le pongo la config para la bd de la config arrancada.
S@|u2.