Mike,

You'll need to have your app blessed to allow outgoing network  
connections. Blessings can be requested by going to the settings page  
for your app, clicking the "Other" tab and submitting the blessing  
form. You can also let me know the name of your app here, and I can  
take care of it.

Best,

/Morten

On Aug 26, 2008, at 12:11 PM, Mike P wrote:

>
> How do I connect to an external database?
>
> I am trying to connect to an external DB to gather data. Usually I do
> this by creating a class that connects to the db using the
> database.yml file:
>
> class MyOutsideTable < ActiveRecord::Base
>   establish_connection :my_outside_table_connection
> end
>
> If there is no database.yml file, I can USUALLY do something like
> this:
>
> class MyOutsideTable < ActiveRecord::Base
>   establish_connection(
>     :adapter => 'mysql',
>     :host => 'public_ip_of_server',
>     :database => 'dbname',
>     :username => 'username',
>     :password => 'password'
>   )
> end
>
>
> So... I tried this and it seems to shutdown my mongrel server. I open
> a terminal and type in "test = MyOutsideTable.new"
>
> and get the message "Your mongrel is not responding, check to see if
> there is a crash log."
>
> No logs, and now you can't view the application.
>
> Thoughts?
> >


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Heroku" group.
To post to this group, send email to heroku@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to