I've tried just about every configuration in database.yml that I could think
of. I changed the adapter to postgresql and then got this error when
deploying via git:

Running migrations...
rake aborted!
could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?

Then, I removed the database.yml completely and got this error:

Running migrations...
rake aborted!
No such file or directory - /mnt/home/userapps/42481/config/database.yml

I'm looking all over the place on the Heroku site about WHAT is the correct
settings for database.yml, but I have found nothing! I read somewhere on
this Google group that Heroku is supposed to overwrite the database.yml for
you ... it doesn't look like its working for me at all. I have yet to
successfully deploy an app on Heroku, am I missing something here, or is my
database just not set up correctly?

Btw, the app that I'm trying to deploy is just the latest version of
Mephisto from git for a simple blog that I want to play with.

On Sat, Nov 22, 2008 at 10:58 AM, Nate Clark <[EMAIL PROTECTED]> wrote:

> I looked everywhere for something about how to configure database.yml ...
> but didn't see anything. I read in one of these Google group posts that
> Heroku overwrites the database.yml automatically.
> I am stumped. I thought this was supposed to be easy and "just work"?
>
> I'm importing just a stock version of Mephisto blog.
>
> Nate
>
>
> On Sat, Nov 22, 2008 at 10:47 AM, ...Paul <[EMAIL PROTECTED]> wrote:
>
>>
>> On Sat, 22 Nov 2008, Keenan Brock wrote:
>> > That is a little strange as I thought Heroku was running postgress
>>
>> That would explain why it couldn't connect to the local MySQL socket.  :)
>>
>> > On Nov 22, 2008, at 4:05 AM, Nate Clark <[EMAIL PROTECTED]> wrote:
>> >> I must be missing something here ... I've imported my app, deploying
>> >> it via git, and when Heroku tries to run the migrations I get:
>>
>> Was your app running on MySQL when you imported it?  Most likely.  Check
>> /config/database.yml and see what it's pointed to.  Likely you need to
>> change the production settings to indicate the Heroku postgres server.
>> Not sure what those settings are off the top of my head, but that's likely
>> the culprit...
>>
>> The database for a Heroku app *is* automatically created for you, but if
>> you've imported an existing app, the config/database.yml file won't have
>> changed automatically to point to the Heroku database.
>>
>> ...Paul
>>
>>             ** ...Paul, [EMAIL PROTECTED], Insane Engineer **
>>      ** Visit Project Galactic Guide http://www.galactic-guide.com/ **
>>                   "I love it when a plan comes together."
>>
>> >>
>>
>
>
> --
> http://nateclark.com
>



-- 
http://nateclark.com

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Heroku" group.
To post to this group, send email to [email protected]
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