I ran into some weird problems, too. It looks like it's an issue with
either Rake or Rails, because inside the install rake task we had
Rake::Task["db:create:all"].invoke
Rake::Task["db:migrate"].invoke
but the second task wouldn't execute unless *none* of the databases
existed. I moved the db create to script/install (as system("rake
db:create:all")), and that seemed to solve the problem.
Do a pull from GitHub to get the updated code (the change is in both
master and edge) and let us know if you still have problems.
Michael
On Thu, Sep 25, 2008 at 2:40 AM, Thomas <[EMAIL PROTECTED]> wrote:
>
> No I really mean: try to use the test db in the dev env, something
> like this (in the database.yml file) :
>
> development:
> database: insoshi_test
> <<: *defaults
>
> And run the server in dev mode to see if it works.
>
> On Sep 25, 11:35 am, "Thanh Doan" <[EMAIL PROTECTED]> wrote:
>> Hi Thomas:
>>
>> >But try this: in your detabase.yml file, put the test database in your
>> >dev environment and run the application. It worked for me.
>>
>> I suppose you meant put the dev database in test env?
>> Not the test database in dev emv.
>>
>> Thank you.
>> Thanh
>>
>> On Thu, Sep 25, 2008 at 4:02 AM, Thomas <[EMAIL PROTECTED]> wrote:
>>
>> > I know this is weird and that's why for me there is a problem with the
>> > install script, which worked fine in a earlier version though.
>>
>> > But try this: in your detabase.yml file, put the test database in your
>> > dev environment and run the application. It worked for me.
>>
>> > Actually the install script populates the test database and not the
>> > dev one. That's why I had to dump the test db into the dev db.
>>
>> > On 25 sep, 10:55, Thomas <[EMAIL PROTECTED]> wrote:
>> > > Ok, so that's the same problem that I have. Have you tried to dump
>> > > your test database and import it in your development database?
>>
>> > > On 25 sep, 10:35, "Yi Tan" <[EMAIL PROTECTED]> wrote:
>>
>> > > > On Thu, Sep 25, 2008 at 3:52 PM, Thomas <[EMAIL PROTECTED]>
>> > wrote:
>>
>> > > > > I think it is the same problem that I have with the install script.
>>
>> > > > > It migrates my test database but not my development database. So try
>> > > > > to do a "rake db:migrate" to create the schema in your development
>> > > > > database. If you still have an error (like me), see if your test
>> > > > > database is ok and copy it in your development database. That's what
>> > I
>> > > > > did and it worked fine for me.
>>
>> > > > I had experienced the same problem. I ran "rake db:migrate" to create
>> > > > development database, but db:migrate won't popultate Preferences table,
>> > and
>> > > > you may come across errors like "global_pref is nil". Make sure your
>> > > > preference table is not empty.
>>
>> > > > ty
> >
>
--
Michael Hartl
Insoshi social software
http://insoshi.com/
--~--~---------~--~----~------------~-------~--~----~
Insoshi developer site: http://dogfood.insoshi.com/
Insoshi documentation: http://docs.insoshi.com/
You received this message because you are subscribed to the Google
Groups "Insoshi" 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/insoshi?hl=en
-~----------~----~----~----~------~----~------~--~---