On Jan 24, 2014, at 12:50 PM, BeeRich wrote:

>  passenger (4.0.35) 
> lib/phusion_passenger/rack/thread_handler_extension.rb:77:in `process_request'
>  passenger (4.0.35) 
> lib/phusion_passenger/request_handler/thread_handler.rb:142:in 
> `accept_and_process_next_request'
>  passenger (4.0.35) 
> lib/phusion_passenger/request_handler/thread_handler.rb:110:in `main_loop'
>  passenger (4.0.35) lib/phusion_passenger/request_handler.rb:441:in `block (3 
> levels) in start_threads'
> 
> As stated, it has logged the following in the production log:
> 
> Mysql2::Error (Unknown database 'rortest_production'):
> 
> There is no such thing as the production database because it hasn't been 
> generated.  I had to manually generate the development database.  
> 
>> The main question is: can you log into your production database
>> using the credentials in database.yml? If so, then can you start up
>> a console in production mode and access the DB?
> 
> I can log into any current database using the credentials in database.yml.  
> For all three environments, they are the same username and password.  The 
> manual rortest_development is the only database that's there because it's the 
> only one that I have made.  Regardless, as stated above, it is looking for 
> the production database and not the development database.  
> 
> My question is, how do I change this?  I have no clue why it's asking for 
> production when I'm clearly in development.  


If you're clearly in development, why are you hitting passenger? What does your 
passenger configuration (in Apache or Nginx) look like? Did you set an 
environment flag explicitly to development? If not, I believe that passenger 
always defaults to production.

Walter

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/E3DADA33-289E-4C0C-8EE5-AE0FE608EDD3%40wdstudio.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to