From keiya at kanno.com Tue Dec 5 23:39:12 2006 From: keiya at kanno.com (keiya at kanno.com) Date: Wed, 06 Dec 2006 13:39:12 +0900 Subject: [Instiki] Instiki with MySQL Message-ID: <45764970.2020203@kanno.com> I have a very very simple question. How can I use Instiki with MySQL? I downloaded the instiki's zip and changed "database.yml." What should I do next? From whitley at acm.org Wed Dec 6 13:28:02 2006 From: whitley at acm.org (John Whitley) Date: Wed, 6 Dec 2006 10:28:02 -0800 Subject: [Instiki] Instiki with MySQL In-Reply-To: <45764970.2020203@kanno.com> References: <45764970.2020203@kanno.com> Message-ID: <5656D348-9C31-411B-A723-8E7F2DA43AA8@acm.org> Assuming that in updating database.yml, you've also created a MySQL db for Instiki, then you just need to run "rake migrate". If you're on Windows using the all-in-one bundle zipfile, you may need to do this as: path\to\ruby\bin\ruby.exe path\to\ruby\bin\rake migrate (The rake tool is just a ruby script, and it typically lives in the ruby/bin directory.) -- John On Dec 5, 2006, at 8:39 PM, keiya at kanno.com wrote: > I have a very very simple question. How can I use Instiki with > MySQL? I > downloaded the instiki's zip and changed "database.yml." What should I > do next? > _______________________________________________ > Instiki-users mailing list > Instiki-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/instiki-users From keiya at kanno.com Wed Dec 6 17:37:31 2006 From: keiya at kanno.com (keiya at kanno.com) Date: Thu, 07 Dec 2006 07:37:31 +0900 Subject: [Instiki] Instiki with MySQL In-Reply-To: <5656D348-9C31-411B-A723-8E7F2DA43AA8@acm.org> References: <45764970.2020203@kanno.com> <5656D348-9C31-411B-A723-8E7F2DA43AA8@acm.org> Message-ID: <4577462B.8000207@kanno.com> Thank you very much for your answer. I'm done with migration. Then I runed the "instiki.cmd" and opened the http://localhost:2500/ but only blank page appears. What is wrong? Am I missing something that I should do? John Whitley wrote: > Assuming that in updating database.yml, you've also created a MySQL > db for Instiki, then you just need to run "rake migrate". If you're > on Windows using the all-in-one bundle zipfile, you may need to do > this as: > > path\to\ruby\bin\ruby.exe path\to\ruby\bin\rake migrate > > (The rake tool is just a ruby script, and it typically lives in the > ruby/bin directory.) > > -- John > > On Dec 5, 2006, at 8:39 PM, keiya at kanno.com wrote: > >> I have a very very simple question. How can I use Instiki with >> MySQL? I >> downloaded the instiki's zip and changed "database.yml." What should I >> do next? >> _______________________________________________ >> Instiki-users mailing list >> Instiki-users at rubyforge.org >> http://rubyforge.org/mailman/listinfo/instiki-users > > _______________________________________________ > Instiki-users mailing list > Instiki-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/instiki-users > > > > From whitley at acm.org Thu Dec 7 19:29:58 2006 From: whitley at acm.org (John Whitley) Date: Thu, 7 Dec 2006 16:29:58 -0800 Subject: [Instiki] Instiki with MySQL In-Reply-To: <4577462B.8000207@kanno.com> References: <45764970.2020203@kanno.com> <5656D348-9C31-411B-A723-8E7F2DA43AA8@acm.org> <4577462B.8000207@kanno.com> Message-ID: Argh. It occurs to me that I probably left out a step which may have caused the migration to run incorrectly. You need to explicitly tell rake db:migrate to use the production (vs. development) database defined in database.yml. Thus the command should be: ruby rake migrate RAILS_ENV=production (Again, you may need to use full paths for ruby & rake.) If that doesn't work, check what log files were created in the log/ directory. Check the end of those file(s) for messages that suggest a problem, and post those fragments here if the answer isn't obvious (e.g. database name misspelled or not created, etc.). -- John On Dec 6, 2006, at 2:37 PM, keiya at kanno.com wrote: > Thank you very much for your answer. > > I'm done with migration. Then I runed the "instiki.cmd" and opened the > http://localhost:2500/ but only blank page appears. What is wrong? > Am I > missing something that I should do? > > John Whitley wrote: >> Assuming that in updating database.yml, you've also created a MySQL >> db for Instiki, then you just need to run "rake migrate". If you're >> on Windows using the all-in-one bundle zipfile, you may need to do >> this as: >> >> path\to\ruby\bin\ruby.exe path\to\ruby\bin\rake migrate >> >> (The rake tool is just a ruby script, and it typically lives in the >> ruby/bin directory.) >> >> -- John >> >> On Dec 5, 2006, at 8:39 PM, keiya at kanno.com wrote: >> >>> I have a very very simple question. How can I use Instiki with >>> MySQL? I >>> downloaded the instiki's zip and changed "database.yml." What >>> should I >>> do next? >>> _______________________________________________ >>> Instiki-users mailing list >>> Instiki-users at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/instiki-users >> >> _______________________________________________ >> Instiki-users mailing list >> Instiki-users at rubyforge.org >> http://rubyforge.org/mailman/listinfo/instiki-users >> >> >> >> > > _______________________________________________ > Instiki-users mailing list > Instiki-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/instiki-users From keiya at kanno.com Fri Dec 8 03:01:32 2006 From: keiya at kanno.com (keiya at kanno.com) Date: Fri, 08 Dec 2006 17:01:32 +0900 Subject: [Instiki] Instiki with MySQL In-Reply-To: References: <45764970.2020203@kanno.com> <5656D348-9C31-411B-A723-8E7F2DA43AA8@acm.org> <4577462B.8000207@kanno.com> Message-ID: <45791BDC.2060302@kanno.com> Thank you very much John! It worked properly and I started to use it to organize my documents. Also I want to inform you there was a page in instiki.org that explains how to switch Instiki's database to MySQL http://instiki.org/show/Instiki+and+MySQL Again I want to thank you for your very very particular answer. John Whitley wrote: > Argh. It occurs to me that I probably left out a step which may have > caused the migration to run incorrectly. You need to explicitly tell > rake db:migrate to use the production (vs. development) database > defined in database.yml. Thus the command should be: > > ruby rake migrate RAILS_ENV=production > > (Again, you may need to use full paths for ruby & rake.) > > If that doesn't work, check what log files were created in the log/ > directory. Check the end of those file(s) for messages that suggest > a problem, and post those fragments here if the answer isn't obvious > (e.g. database name misspelled or not created, etc.). > > -- John > > > On Dec 6, 2006, at 2:37 PM, keiya at kanno.com wrote: > >> Thank you very much for your answer. >> >> I'm done with migration. Then I runed the "instiki.cmd" and opened the >> http://localhost:2500/ but only blank page appears. What is wrong? >> Am I >> missing something that I should do? >> >> John Whitley wrote: >>> Assuming that in updating database.yml, you've also created a MySQL >>> db for Instiki, then you just need to run "rake migrate". If you're >>> on Windows using the all-in-one bundle zipfile, you may need to do >>> this as: >>> >>> path\to\ruby\bin\ruby.exe path\to\ruby\bin\rake migrate >>> >>> (The rake tool is just a ruby script, and it typically lives in the >>> ruby/bin directory.) >>> >>> -- John >>> >>> On Dec 5, 2006, at 8:39 PM, keiya at kanno.com wrote: >>> >>>> I have a very very simple question. How can I use Instiki with >>>> MySQL? I >>>> downloaded the instiki's zip and changed "database.yml." What >>>> should I >>>> do next? >>>> _______________________________________________ >>>> Instiki-users mailing list >>>> Instiki-users at rubyforge.org >>>> http://rubyforge.org/mailman/listinfo/instiki-users >>> _______________________________________________ >>> Instiki-users mailing list >>> Instiki-users at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/instiki-users >>> >>> >>> >>> >> _______________________________________________ >> Instiki-users mailing list >> Instiki-users at rubyforge.org >> http://rubyforge.org/mailman/listinfo/instiki-users > > _______________________________________________ > Instiki-users mailing list > Instiki-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/instiki-users From keiya at kanno.com Tue Dec 19 18:47:54 2006 From: keiya at kanno.com (keiya at kanno.com) Date: Wed, 20 Dec 2006 08:47:54 +0900 Subject: [Instiki] Can't export Message-ID: <45887A2A.7090604@kanno.com> I want to export my instiki via "Export" button on the top of the page but I have a problem. When I click there, "Internal Error. An application error occurred while processing your request." appears. It happens on my instiki on a server, and instiki.org. Do you have any ideas? From keiya at kanno.com Tue Dec 19 21:31:14 2006 From: keiya at kanno.com (keiya at kanno.com) Date: Wed, 20 Dec 2006 11:31:14 +0900 Subject: [Instiki] Can't export In-Reply-To: References: Message-ID: <4588A072.4040003@kanno.com> Darly, Thank you very much for your rapid responce. I just started to study Ruby on Rails last month so I'm not sure that I can patch the source file. But I want to try to use your patch so send me your source files please. Daryl Richter wrote: > Keiya- > > This is a known bug (#270) for which I have developed a patch and have been > trying for a while now to be able to get into the source tree. > > It looks like it might happen, but I wouldn't hold your breath. :( > > Are you a developer? Would you want the source files to patch this? It > does require a Rails migration (database modification). > > > On 12/19/06 6:47 PM, "keiya at kanno.com" wrote: > >> I want to export my instiki via "Export" button on the top of the page >> but I have a problem. When I click there, "Internal Error. An >> application error occurred while processing your request." appears. It >> happens on my instiki on a server, and instiki.org. Do you have any ideas? >> _______________________________________________ >> Instiki-users mailing list >> Instiki-users at rubyforge.org >> http://rubyforge.org/mailman/listinfo/instiki-users > > -- > Daryl > http://itsallsemantics.com > > "I?m afraid of the easy stuff? its always harder than it seems?" > -- Bill Hampton, 2006