Yani Yen wrote:
> We have an application Ruby on rails, which fires a number of queries to
> the database. I Suspect it is connection timeout error or something
> 
> When we run the application in development mode, it works as expected.
> However when we switch to Production mode, we get the following error in
> Postgre console:
> --------------------------
> LOG:  could not receive data from client: No connection could be made
> because th
> e target machine actively refused it.
> 
> LOG:  unexpected EOF on client connection
> ------------------------
> 
> Entries in database.yml file are as follows:
> 
> development:
>   adapter: jdbcpostgresql
>   database: microblogging
>   username: databaseusername
>   password: databasepassword
>   pool: 15
>   timeout: 15000
> 
> production:
>   adapter: jdbcpostgresql
>   database: microblogging
>   username: databaseusername
>   password: databasepassword
>   pool: 15
>   timeout: 15000
> 
> 
> Environment:
> Jruby version 1.5.0
> Rails version 2.3.5
> Postgre SQL database
> Internal WEBrick server

This won't solve your problem, but it's a VERY BAD practice to have 
development and production point to the same DB. You really should be 
able to play around in your dev sandbox without jeopardizing production 
data.

Best,
--
Marnen Laibow-Koser
http://www.marnen.org
mar...@marnen.org
-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to